NSPopUpButton, Bindings and NSArrayControllers.... Bug?
NSPopUpButton, Bindings and NSArrayControllers.... Bug?
- Subject: NSPopUpButton, Bindings and NSArrayControllers.... Bug?
- From: Benjamin Salanki <email@hidden>
- Date: Wed, 06 Sep 2006 11:01:21 +0200
Dear list!
I got stuck again, hope you can help me.
I have a Core Data application that has two entities, one is connected to the other in a to-many relationship on one end, and a simple relationship on the other end. So basically i have a container entity, let's call it store, and entities that should be part of the store entity.
Everything's fine, I have set up two NSArrayControllers for the two entities, and specified the contentSet of one as the selection of the other.
I have an NSPopUpButton that should display the storeName keypath of the storeEntity's ArrangedObjects. Which it does perfectly.
Now the problem is if the storeEntity currently selected has no entities of the other type (clipEntity), when I click on the NSPopUpButton, I get a menu that has disabled items, and if i let go, the whole NSPopUpBUtton gets disabled.
If I have at least one clipEntity that is part of the *selected* storeEntity, I get the correct behaviour.
Can anyone tell me what I am doing wrong?
Thanks,
Ben
_______________________________________________
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