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

filling a TableView with pre-existing data


  • Subject: filling a TableView with pre-existing data
  • From: Scott Frankel <email@hidden>
  • Date: Mon, 1 May 2006 10:37:34 -0700


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


If a nib file's NSArrayController's ObjectClassName parameter corresponds with an implementation file of a class I created with KVC- style accessors (the M-V-C model), then shouldn't the model class' init: method get called when I run the app? I note that my init: method's NSLog statement is never returned.

Seems that somewhere, I'm not connecting the dots.

Following the property list Dict example in http:// developer.apple.com/documentation/Cocoa/Conceptual/TableView/ index.html#//apple_ref/doc/uid/10000026i), where should this Dict live so that the NSTableView's NSArrayController can find the data and display it? In the model class' init: method? Is there a method I should be overriding to trigger a data load?

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: filling a TableView with pre-existing data
      • From: Scott Frankel <email@hidden>
    • Re: filling a TableView with pre-existing data
      • From: Scott Frankel <email@hidden>
  • Prev by Date: Re: First day of the week? Which one?
  • Next by Date: Custom view inside a PDFView
  • Previous by thread: Re: First day of the week? Which one?
  • Next by thread: Re: filling a TableView with pre-existing data
  • Index(es):
    • Date
    • Thread