Custom NSCell and Binding to a relationship property?
Custom NSCell and Binding to a relationship property?
- Subject: Custom NSCell and Binding to a relationship property?
- From: Rick Mann <email@hidden>
- Date: Fri, 09 Dec 2011 10:24:47 -0800
Hi I'm implementing a UI in which each row in a table corresponds to an object in an animation. Each animated object has a list of events. I want to implement a custom NSCell to display those events as a horizontal bar extending to the right in a column in the table view. Here's a poor ASCII art example:
Object 1 +-------------+ +-----------------------------+
Object 2 +---------------+ +--+ +--+ +--+
Object 3 +-----------------------------------------+
My object has an "events" property, and there is an Event entity with start and duration properties. Do I just create an NSSet* events property on my NSCell subclass and bind it to the events key path of the arrangedObjects in the array controller? How do I bind that in IB?
Thanks,
Rick
_______________________________________________
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