Re: Populating NSTableView from data source
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.