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 16:36:28 -0800
On Feb 28, 2004, at 2:14 PM, Matt Jaffa wrote:
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?
So can I in my NSPreferencePane class that I wrote and extended from
NSPreferencePane,
implement those three functions that a NSTableDateSource need, and
then make it so that the
NSTableView's data Source object is my NSPreferencePane subclass?????
Or do I need to write a controller class with those functions?
You don't need to create another controller class; can can simply
implement the NSTableDataSource methods in your NSPreferencePane
subclass.
I would suggest taking a break for the moment from creating a
PreferencePane and create instead a simply Cocoa single-window
application that manages a table view. Understand the basic design
patterns, in particular the concepts of delegation and File's Owner.
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.