• 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: Populating NSTableView from data source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Populating NSTableView from data source


  • Subject: Re: Populating NSTableView from data source
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 28 Feb 2004 13:15:47 -0800

On Feb 28, 2004, at 1:00 PM, Matt Jaffa wrote:
I was wondering how I let my NSTableView from where to get its data after
you do:
NSTableView *table;
[table reloadData];
I was looking at an example in a cocoa book, but it doesn't say how to make
the TableView load from a certain data source.

Umm, from its dataSource:

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSTableView.html>
" dataSource
Returns the object providing the data that the NSTableView displays."

See complete discussion in the article "Using a Table Data Source" in <http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/ index.html>

I have a System PreferencePane I have created, and when they add rules I want them
to display in my Table View, without having to go through all the trouble of having an
NSDocument.

It's not clear why you think you would require an NSDocument?

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Populating NSTableView from data source
      • From: Bill Cheeseman <email@hidden>
    • Re: Populating NSTableView from data source
      • From: Matt Jaffa <email@hidden>
References: 
 >Populating NSTableView from data source (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Populating NSTableView from data source
  • Next by Date: Re: US / British English Localisations
  • Previous by thread: Populating NSTableView from data source
  • Next by thread: Re: Populating NSTableView from data source
  • Index(es):
    • Date
    • Thread