• 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
NSArrayController / NSTableView questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController / NSTableView questions


  • Subject: NSArrayController / NSTableView questions
  • From: Paul Forgey <email@hidden>
  • Date: Mon, 5 Sep 2005 14:11:45 -0700

I've got an application where I want an _ordered_ list of entities on the many side of a one to many relationship. The result of the master entity selection's entity is a set, which indicates to me the order is probably arbitrary (is that true?). One solution I am considering is to add a numeric sorting attribute to this table, and to subclass the array controller to handle the insertObject:atArrangedObjectIndex: method. Is this really necessary? And how do I (or can I) bind an NSTableView with a sortDescription to express this? Or would that be moot if I subclass the array controller?

Using the result of dropping an entity into a window as an example, I have some questions about what is going on. Does this "take over" the dataSource of the NSTableView? What is the dataSource when this is happening? The controller? I'm trying to figure out how to support dragging in the NSTableView to reorder the items. Also, I'm noticing the NSTableColumns are all individually bound to the various arrangedObject.key.path expressions. How does this come together for the entire NSTableView itself, which I am noticing is not bound to anything?

_______________________________________________
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


  • Follow-Ups:
    • Re: NSArrayController / NSTableView questions
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Class-Within-Class and Archiving
  • Next by Date: Re: NSArrayController / NSTableView questions
  • Previous by thread: Re: Class-Within-Class and Archiving
  • Next by thread: Re: NSArrayController / NSTableView questions
  • Index(es):
    • Date
    • Thread