Re: Data in NSTableView
Re: Data in NSTableView
- Subject: Re: Data in NSTableView
- From: Greg Pfeil <email@hidden>
- Date: Fri, 28 May 2004 03:08:15 -0700
On 27 May 2004, at 23:57, Rahul Verma wrote:
Can some one help in hard code some data in to my NSTableView? Any
example
??
Wow, I was just discussing the genius of this API tonight to someone
who probably had no clue what I was talking about. When I first saw the
way to do this, I was like "What the...?" then it suddenly dawned on me
how perfect this method was, and I was instantly converted to the
Cocoa/OpenStep way.
You don't push data into NSTableView. You implement NSTableDataSource
and let the NSTableView pull data from that class.
tableView:objectValueForTableColumn:row: is the important method -- it
returns the value for a particular cell. The NSTableView will pull data
for only the cells that are visible in the UI.
This is exactly the situation that made Cocoa/OpenStep click for me. It
was an "Ah-ha!" moment.
Sorry if this is a little non-coherent. It's a bit late here ...
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.