• 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: Matt Jaffa <email@hidden>
  • Date: Sat, 28 Feb 2004 15:14:43 -0700

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?
I think I might be starting to understand it.

Matt

On Feb 28, 2004, at 3:00 PM, Matt Jaffa wrote:

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.
_______________________________________________
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: mmalcolm crawford <email@hidden>
References: 
 >Populating NSTableView from data source (From: Matt Jaffa <email@hidden>)
 >Re: Populating NSTableView from data source (From: mmalcolm crawford <email@hidden>)
 >Re: Populating NSTableView from data source (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: Populating NSTableView from data source
  • Next by Date: Re: Populating NSTableView from data source
  • Previous by thread: Re: Populating NSTableView from data source
  • Next by thread: Re: Populating NSTableView from data source
  • Index(es):
    • Date
    • Thread