• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom NSCell and Binding to a relationship property?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Fwd: Safari downloader-like behavior
  • Next by Date: Canonical list of class-name prefixes?
  • Previous by thread: About Face - 3rd edition
  • Next by thread: Canonical list of class-name prefixes?
  • Index(es):
    • Date
    • Thread