array controllers and key paths
site_archiver@lists.apple.com Delivered-To: Cocoa-dev@lists.apple.com Hi, I've got 3 entities, Event, CustomerOrders and CustomerORderITems. Many Thanks Amy _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... Events has a to many relationship (eventOrders) to CustomerOrders CustomerOrders has a to many relationship (customerOrderItems) to CustomerOrderItems I'd like to be able to list all of the CustomerOrderItems for a selected event in a table. I think I need to create a new array controller (eventOrderItems) but how do I bind the content? I've tried various array/set key paths but none have worked so far. Is this possible? I've got an array controller called eventOrders which is bound to the Events.selection so I thought I could bind eventOrderItems to eventOrders.arrangedObjects keypath customerOrderItems If I try to bind the content set I get an error saying something like cannot create content set, try using content array, Cannot create NSSet from object ( ) of class NSCFArray - consider using contentArray binding instead of contentSet binding but if I try that I get another error [<_NSFaultingMutableSet 0x1a0a90> addObserver:forKeyPath:options:context:] is not supported. Key path: orderItemProduct.productTitle This email sent to site_archiver@lists.apple.com
participants (1)
-
Amy Heavey