• 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: NSTableViewDataSource Protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableViewDataSource Protocol


  • Subject: Re: NSTableViewDataSource Protocol
  • From: Graham Cox <email@hidden>
  • Date: Thu, 18 Feb 2010 23:28:48 +1100

On 18/02/2010, at 11:21 PM, Michael Davey wrote:

> Weird, cos when I change the Active SDK in Xcode to 10.5 I get the following error:
>
> cannot find protocol declaration for 'NSTableViewDataSource'
>
> And the docs here:
>
> http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Protocols/NSTableDataSource_Protocol/Reference/Reference.html
>
> Suggest that it is available to 10.6 and later
>
> Any idea what I might be doing wrong?
>


In 10.6, NSTableViewDataSource became a formal protocol, where previously it was an informal one. While the docs are strictly correct, they're a bit misleading since the methods of the protocol have been available since 10.0

If your datasource is declared thus:

@interface MyDS <NSTableViewDataSource>

...

@end

you need to remove the angle bracket part for 10.5

--Graham


_______________________________________________

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

  • Follow-Ups:
    • Re: NSTableViewDataSource Protocol
      • From: Scott Anguish <email@hidden>
    • Re: NSTableViewDataSource Protocol
      • From: Michael Davey <email@hidden>
References: 
 >NSTableViewDataSource Protocol (From: Michael Davey <email@hidden>)
 >Re: NSTableViewDataSource Protocol (From: Graham Cox <email@hidden>)
 >Re: NSTableViewDataSource Protocol (From: Michael Davey <email@hidden>)

  • Prev by Date: Re: Re : Proper way to initialize application support file
  • Next by Date: Re: NSTableViewDataSource Protocol
  • Previous by thread: Re: NSTableViewDataSource Protocol
  • Next by thread: Re: NSTableViewDataSource Protocol
  • Index(es):
    • Date
    • Thread