Solved Re: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
Solved Re: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
- Subject: Solved Re: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
- From: "Peter.Teeson" <email@hidden>
- Date: Thu, 29 Apr 2004 17:07:45 -0400
On Apr 29, 2004, at 14:34, Jonathan E. Jackel wrote:
<snip>
>
The names of the parameters (if any) are an integral part of the method
>
name. You left out "row." Those double colons at the end of the
>
method
>
name in the warning are a dead giveaway. For that matter, you left out
>
tableView, so the datasource (which can handle any number of table
>
views)
>
doesn't know which one you mean. It should look like this
>
>
tempDelimitedString = [passwordRecords tableView:tableView
>
objectValueForTableColumn:[tableView
>
tableColumnWithIdentifier:@"macAddress"]
>
row:[tableView selectedRow]];
>
>
Jonathan
>
Jonathan
>
Thank you Mssrs Jackel and Cox. The light bulb just went on because of
your kind help.
I was not reading the method name correctly nor invoking it correctly,
as you gentlemen pointed out.
Your patience in teaching me is much appreciated. As well as being
effective because I was able to correctly use
- (void)tableView:(NSTableView *)tableView
setObjectValue:(id)objectValue forTableColumn:(NSTableColumn
*)tableColumn row:(int)row;
respect...
Peter
_______________________________________________
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.