Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-21 Thread Greg Guerin
Peter C wrote: Graham, I used to store serial number codes for all users, in this directory. Looks like I have change it to save it user library directory. The /Users/Shared/ directory is public-writable, with sticky-bit set (unless that changed in Lion, too). See 'man sticky' for an

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-21 Thread vincent habchi
Le 21 juil. 2011 à 07:24, Peter C a écrit : > Vincent, I meant changing to write to ~/Library/Preferences, user directory. Ah, okay. But do not forget to use the proper API to get the ad hoc ROOT directory! Vincent___ Cocoa-dev mailing list (Cocoa-dev

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Peter C
Vincent, I meant changing to write to ~/Library/Preferences, user directory. Peter C On 21 Jul 2011, at 12:35 PM, vincent habchi wrote: >> I have think of authorization code but it seems now Apple does not want >> others to write into this directory. Better to change code to adapt to new >> se

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread vincent habchi
> I have think of authorization code but it seems now Apple does not want > others to write into this directory. Better to change code to adapt to new > settings. You will have to. Sandboxing, if you adopt it, won’t let you write in there anyway. Vincent ___

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Dave Fernandes
I've never tried it, but doesn't CFPreferencesSetValue (with the kCFPreferencesCurrentHost domain) do what you need? Or am I misunderstanding "host" in this context? On 2011-07-20, at 10:58 PM, Peter C wrote: > Graham, I used to store serial number codes for all users, in this directory. > > L

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Peter C
I have think of authorization code but it seems now Apple does not want others to write into this directory. Better to change code to adapt to new settings. Peter C On 21 Jul 2011, at 10:30 AM, Stephen J. Butler wrote: > On Wed, Jul 20, 2011 at 8:31 PM, Peter C wrote: >> Some of the programs

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Peter C
Graham, I used to store serial number codes for all users, in this directory. Looks like I have change it to save it user library directory. Peter C. On 21 Jul 2011, at 10:25 AM, Graham Cox wrote: > Check the release notes - a number of system folders have different > permissions: > >> Folde

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Stephen J. Butler
On Wed, Jul 20, 2011 at 8:31 PM, Peter C wrote: > Some of the programs I wrote save a preference file into /Library/Preferences > via NSDictionary. This serves as a general settings for all users. Many other > 3rd party software (Skype, Microsoft and etc) saves preferences file into > this dire

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Graham Cox
Check the release notes - a number of system folders have different permissions: > Folder Permissions and Ownership > A number of folders in the System and Local file system domains now have > different ownership and permissions. Specifically: > • Many folders in the System domain that were

Re: Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Laurent Daudelin
Peter, /Library/Preferences is indeed set only to root. Applications don't typically save their settings in there. Applications usually save their settings in ~/Library/Preferences (note the "~" meaning the user's home folder). -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin

Writing global preferences file into /Library/Preferences (OS X Lion)

2011-07-20 Thread Peter C
Hello all, This is a question that involves 10.7 (Lion). I believe it is allow to discuss about 10.7 at this moment, as 10.7 is release (on sale) to public. List administrator please remove this email if you think it is not allow to discuss this. Some of the programs I wrote save a preference