RE: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
RE: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
- Subject: RE: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Thu, 29 Apr 2004 14:34:45 -0400
>
tempDelimitedString = [passwordRecords
>
objectValueForTableColumn:[tableView
>
tableColumnWithIdentifier:@"macAddress"]:[tableView selectedRow]];
>
>
But I get the following Warnings when building:
>
>
MyDocument.m:130: `PasswordsDataSource' may not respond to
>
`-objectValueForTableColumn::'
>
MyDocument.m:130: cannot find method `-objectValueForTableColumn::';
>
return type `id' assumed
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
_______________________________________________
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.