Re: Core Data bound to NSPopUpButton
Re: Core Data bound to NSPopUpButton
- Subject: Re: Core Data bound to NSPopUpButton
- From: mmalc crawford <email@hidden>
- Date: Thu, 22 Feb 2007 20:09:56 -0800
On Feb 22, 2007, at 5:45 PM, Allan Rentcome wrote:
I have a core data application. Within the interface I have two
NSPopupButtons. These are bound to two NSArrayControllers which in
turn are connected to my core data through the ManagedObjectContext.
One controller populates the content of one of the pop-up buttons
with entities and the other button is populated by the other
controller which has a contentSet based on the current selection in
the first controller ( there is a relationship between these two
entities). My problem is as follows:
Please try to use the correct terminology, it makes analysing the
problem much easier (an entity is not the same as a managed object,
for example).
1. When I change the selection in the first pop-up button I want to
change the content of the second pop-up button with the entities
that have a relationship with the selection in the first pop-up.
However, when I do not see any updates or changes in the second pop-
up when I change the selection in the first. I have successfully
done this with two NSTableViews but cannot get it to work with the
two NSPopupButtons. Besides the binding of the content parameters
what else do I need to bind?
What is the key path for the contentSet binding?
In what way is the configuration different from that generated by
Interface Builder if you create an interface automatically (see, for
example, <http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/02_CreatingProj/chapter_3_section_4.html
>)?
(I'd expect contentSet to be bound to something like
[SourceController].selection.toManyRelationship)
mmalc
_______________________________________________
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