Re: NSTableViewDataSource Protocol

2010-02-18 Thread Scott Anguish
On Feb 18, 2010, at 7:28 AM, Graham Cox wrote: > 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 This has been co

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
Thanks for that! On 18 Feb 2010, at 16:05, Sean McBride wrote: > On 2/18/10 12:07 PM, Michael Davey said: > >> I am writing an app that needs to be able to target 10.5 at least and >> hopefully 10.4, but I have just found that the way that table views are >> handled has changed - does anyone hav

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Sean McBride
On 2/18/10 12:07 PM, Michael Davey said: >I am writing an app that needs to be able to target 10.5 at least and >hopefully 10.4, but I have just found that the way that table views are >handled has changed - does anyone have a link to some documentation for >the old way to do things?

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
OK, just did some reading on informal protocols, thanks a lot for your help Mikey On 18 Feb 2010, at 12:40, Graham Cox wrote: > > On 18/02/2010, at 11:37 PM, Michael Davey wrote: > >> My class is describes as follows: >> >> @interface AppController : NSObject >> >> >> I tried removing NSO

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Graham Cox
On 18/02/2010, at 11:37 PM, Michael Davey wrote: > My class is describes as follows: > > @interface AppController : NSObject > > > I tried removing NSObject and putting it there, but that did not work - any > clues? > > Thanks, btw > Yes, do what I told you, remove the NSTableViewDataSou

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
My class is describes as follows: @interface AppController : NSObject I tried removing NSObject and putting it there, but that did not work - any clues? Thanks, btw On 18 Feb 2010, at 12:28, Graham Cox wrote: > > On 18/02/2010, at 11:21 PM, Michael Davey wrote: > >> Weird, cos when I chan

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Mike Abdullah
All that's changed is it's gone from an informal protocol: @interface NSObject (NSTableViewDataSource) ... @end to a formal one: @protocol NSTableViewDataSource ... @end On 18 Feb 2010, at 12:07, Michael Davey wrote: > Hi, > > I am writing an app that needs to be able to target 10.5 at lea

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Graham Cox
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/Refe

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
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

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Graham Cox
On 18/02/2010, at 11:07 PM, Michael Davey wrote: > I have just found that the way that table views are handled has changed That's news to the rest of us! NSTableView dataSource still works just fine. --Graham ___ Cocoa-dev mailing list (Cocoa-dev