Re: CFPreferences
Re: CFPreferences
- Subject: Re: CFPreferences
- From: Alan Smith <email@hidden>
- Date: Sat, 28 Jan 2006 10:34:34 -0500
Sweet! Thanks everyone, I won't say "guys" Rosyna, never fear.
My project is a cool little desktop picture changer so all this info is
going to be quite useful. Would it be safe to get into the numbered ("some
weird number") part of the dictionary by useing a enumerator and just
getting the contents of the first dictionary, the numbered one? Or should I
use NSScreen?
Oh, one other question. Is there a open dialog box class or something so I
don't have to write my own? I want to be able to open pictures by either
pressing a button or via command-o, both would open the dialog. Has anyone
else made one that I can use? The app will be open source so don't worry
about me taking credit for the open dialog by getting paid for the app.
Cheers, Alan
On 1/28/06, Darkshadow <email@hidden> wrote:
>
>
> On Jan 27, 2006, at 6:16 PM, Rosyna wrote:
>
> > Because ImageFilePath isn't in the top of the preferences. It is
> > inside a dictionary with some weird number (or default) which is
> > inside a dictionary called "Background". You must go through both
> > of those.
>
> Just to note, it's not "some weird number," but a given screen's
> display ID. You can get, for instance, the number for the screen
> with the menu bar with [[[[NSScreen screens] objectAtIndex:0]
> deviceDescription] objectForKey:@"NSScreenNumber"].
>
> Though if you're actually doing that in code, you'll probably want to
> check that [NSScreen screens] doesn't return nil first.
>
>
> Darkshadow
> (aka Michael Nickerson)
>
>
>
>
>
_______________________________________________
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