Re: NSArrayController, NSPopupMenu, defaults and arrangedObjects
Re: NSArrayController, NSPopupMenu, defaults and arrangedObjects
- Subject: Re: NSArrayController, NSPopupMenu, defaults and arrangedObjects
- From: Volker in Lists <email@hidden>
- Date: Tue, 9 Dec 2008 12:51:30 +0100
Hi Steven,
as far as I know, the fect happens in the next run loop. So you would
need to set the selection then. This is possible for example via the
performSelector:withObject:afterDelay: and a delay of 0.0 on self (?).
Cheers,
Volker
Ah, I understand. I've implemented the correct property now but I
still have the problem of arrangedObjects returning an empty array
when called in windowDidLoad. So I can't set my property as I have
nothing to set it with. Any ideas why arrangedObjects would return
zero? It's like the window and controls and initialised before Core
Data can return the fetch.
_______________________________________________
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden