• 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
NSTableView app design
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView app design


  • Subject: NSTableView app design
  • From: Scott Frankel <email@hidden>
  • Date: Thu, 27 Apr 2006 10:02:01 -0700


Following Hillegas, I have questions about using NSTableView objects.

In both Hillegas' chapter on Helper Objects and Apple's online docs on using NSTableViews, methods are used to explicitly return the number of rows in a table and the value of an object in a specific column (as well as setting the value). In the following chapter on Bindings, none of these methods is called. An NSArrayController appears to handle those tasks. Do I have this correct? Does using the view's bindings obviate the need to call numberOfRowsInTableView:, &c.?

Also, if I understand correctly, a tableView object's data source is considered part of the app's controller, in M-V-C terms. Using bindings and key-value coding style accessors, the functionality that would've been handled by the controller is now accessed directly in/ from the model. Is this correct?

Thanks in advance!
Scott




_______________________________________________ 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: NSTableView app design
      • From: Ondra Cada <email@hidden>
    • Re: NSTableView app design
      • From: Paul Lynch <email@hidden>
  • Prev by Date: Re: NSActionCell mouseEntered crashes application
  • Next by Date: Re: NSTableView app design
  • Previous by thread: Re: NSActionCell mouseEntered crashes application
  • Next by thread: Re: NSTableView app design
  • Index(es):
    • Date
    • Thread