• 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: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Solved Re: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
      • From: "Peter.Teeson" <email@hidden>
References: 
 >[Q] am I allowed to call NSTableDataSource informal protocol methods myself? (From: "Peter.Teeson" <email@hidden>)

  • Prev by Date: XTools 1.2 and ODBC problems?
  • Next by Date: Re: Connecting Mulitple Nibs
  • Previous by thread: Re: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
  • Next by thread: Solved Re: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
  • Index(es):
    • Date
    • Thread