• 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
Re: filling a TableView with pre-existing data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filling a TableView with pre-existing data


  • Subject: Re: filling a TableView with pre-existing data
  • From: Scott Frankel <email@hidden>
  • Date: Wed, 3 May 2006 00:27:27 -0700


Success!

Thanks to Ondra and I. Savant for their suggestions. If I understand what I've done correctly, achieving the behavior I wanted required understanding that:

1) The MyDocument object of a document-based cocoa app is part of the app's Controller layer, MVC-wise

2) An NSArrayController can connect to the MyDocument object (setting its initial content by overriding awakeFromNib in MyDocument.m) as well as having its ObjectClassName set to my Model object class' name

3) Conceptually, my Model object exists in at least 2 layers: one is the class I created with KVC-style accessor methods to manage the data flow to and from the tableView, and the other is "the document," which in this case is the rows of data I was trying to load into the tableView at launch time.

Onward -
Scott


On May 1, 2006, at 10:37 AM, Scott Frankel wrote:


How does one fill an NSTableView, set up to use bindings, with pre- existing data?



_______________________________________________ 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
References: 
 >filling a TableView with pre-existing data (From: Scott Frankel <email@hidden>)

  • Prev by Date: Re: Efficiently getting characters
  • Next by Date: Re: Newbe Question: Searching Address Book
  • Previous by thread: Re: filling a TableView with pre-existing data
  • Next by thread: Custom view inside a PDFView
  • Index(es):
    • Date
    • Thread