Core Data and "interactive" NSPopUpButtons
Core Data and "interactive" NSPopUpButtons
- Subject: Core Data and "interactive" NSPopUpButtons
- From: Jim Turner <email@hidden>
- Date: Tue, 16 Jan 2007 16:12:38 -0600
- Thread-topic: Core Data and "interactive" NSPopUpButtons
Firstly, what I'm trying to duplicate is the functionality Safari provides
when you choose where to save downloaded files. A popup button that has the
current location, a separator, then an "Other..." option that starts a
NSOpenPanel.
I've successfully duplicated the experience outside of CoreData, basically
by building a new NSMenu and sticking it in the popup. Works fabulously,
but I'm having a bit of a trouble trying to get this tied into CD.
All I'm really trying to store is the location the user chooses, but I don't
see how one can tell CoreData or bindings that you want one element in the
menu to be retrieved from the Store and the other two to be static elements.
My original thought was to simply not bind the popup to anything, build the
menu and handle the CoreData interaction manually, but that seems to defeat
the purpose of bindings/CoreData. Plus, that gets ugly when the user
switches from one entry to the next.
Any ideas?
--
Jim Turner
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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