• 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: Newbie problem with protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie problem with protocol


  • Subject: Re: Newbie problem with protocol
  • From: Pierre Neihouser <email@hidden>
  • Date: Mon, 27 Jan 2003 12:08:33 +0100

I just wanted to say a big thanks to everybody for their amazing support.
I got all these replies in no time. And it's all working beautifully now.

Thanks a lot,

-- Pierre

On Sunday, Jan 26, 2003, at 20:49 Europe/Paris, Jeff Disher wrote:

The NSTableDataSource is an informal protocol so you can't claim that you implement it. This is done so that you can only implement part of the protocol if you don't need the whole thing, I think.

Just set the object instance as the data source for your tableview and it should just work.

Hope that helps,
Jeff.


On Sunday, January 26, 2003, at 02:22 PM, Pierre Neihouser wrote:

Hi,

Trying to implement NSTableDataSource protocol, I get an error message when I build my project.
Here is the interface:

#import <AppKit/NSTableView.h>
#import <Cocoa/Cocoa.h>

@interface TableLogger : NSObject <NSTableDataSource>

{
}

- (void)process:(NSTableView *)table;

@end

I get a "cannot find protocol declaration for `NSTableDataSource' " error message on build.
I thought I imported everything needed, but it looks like I forgot something.
Thanks for your help, if you need more information from me don't hesitate to ask.

-- Pierre
_______________________________________________
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.


Jeff Disher
President and Lead Developer of Spectral Class
Spectral Class: Shedding Light on Innovation
http://www.spectralclass.com/
_______________________________________________
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.

References: 
 >Re: Newbie problem with protocol (From: Jeff Disher <email@hidden>)

  • Prev by Date: How to know that a palette has been closed ? ( windowWillClose Notification )
  • Next by Date: RE: simple button with picture
  • Previous by thread: Re: Newbie problem with protocol
  • Next by thread: Draw a NSImage in a NSTableView cell?
  • Index(es):
    • Date
    • Thread