Write to file

Discussion in 'Mac Programming' started by DeDMakar, Dec 23, 2008.

  1. DeDMakar macrumors member

    Mar 24, 2008
    I have got my own bundle that I insert into login window. When login window is started up the bundle writes necessary parametr into file which is situated in /Library/Preferences/.My bundle works in login window under user account securityagent. What is another way to write into file?

    See: http://www.cocoabuilder.com/archive/message/cocoa/2008/12/15/225471
  2. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    First of all, that write is going to fail for non-administrative users, unless the application itself has the needed permissions, since the entirety of /Library is unwritable to such users.

    Secondly, though it seems unlikely to me, it's possible that the Mac OS just doesn't like your attempt to write a plist file in an invalid format.

Share This Page