Re: Populating NSTableView from data source
Re: Populating NSTableView from data source
- Subject: Re: Populating NSTableView from data source
- From: Matt Jaffa <email@hidden>
- Date: Sat, 28 Feb 2004 15:00:44 -0700
Yeah I saw that online documentation and it just confused me more,
I am trying to look at an example ScoreTable by one of the authors of
the cocoa programming book to see how he fixed his data source.
On Feb 28, 2004, at 2:15 PM, mmalcolm crawford wrote:
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.
_______________________________________________
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.