What's the argument aTableView used for?
What's the argument aTableView used for?
- Subject: What's the argument aTableView used for?
- From: "Frank Bettger" <email@hidden>
- Date: Tue, 18 Sep 2007 09:15:23 +0200
I'm trying to understand how NSTableView works. A NSTableView needs a
dataSource object that implements the method
tableView:objectValueForTableColumn:row:
Hillegass' book states:
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
The dataSource will reply with the object that should be displayed in the
row rowIndex and the column aTableColumn.
As we can see above our method takes three arguments: aTableView,
aTableColumn and rowIndex. Now the dataSource object clearly needs the two
arguments aTableColumn and rowIndex. But what does it need the argument
aTableView for?
Thanks Frank
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden