Write to file

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

  1. DeDMakar macrumors member

    Joined:
    Mar 24, 2008
    #1
    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

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    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