Re: CFPreferences calls in Cocoa apps
Re: CFPreferences calls in Cocoa apps
- Subject: Re: CFPreferences calls in Cocoa apps
- From: The Karl Adam <email@hidden>
- Date: Thu, 18 Nov 2004 20:44:47 -0500
If you only need read access to the preferences of another app then
-addSuiteNamed:@"com.bundle.id" should do exactly what you want. if
you want to edit them you can use the PereferenceDomain methods of
NSUserDefaults.
-Karl
On Thu, 18 Nov 2004 17:18:54 +0000, Thomas Davie <email@hidden> wrote:
> Hi,
> I'm writing what is at heart a cocoa application, but needs to make a
> few Core Foundation Preferences calls, specifically it needs to grab
> the preferences for another application. I have been trying to use
> CFPreferencesCopyKeyList to grab the preferences, but it apparently
> always returns nil (at least within a cocoa app). Considering what
> might be causing this, I decided to try synchronizing the preferences
> first using CFPreferencesAppSynchronize, this unfortunately causes a
> SIGABRT... Does anyone have any idea why this happens?
>
> Thanks
>
> Tom Davie
>
> --
> Computer Science is as much about computers as astronomy is about
> telescopes -- Edsgar Dijkstra
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden