Re: Newbie problem with protocol
Re: Newbie problem with protocol
- Subject: Re: Newbie problem with protocol
- From: j o a r <email@hidden>
- Date: Sun, 26 Jan 2003 20:44:27 +0100
The NSTableDataSource protocol is an informal protocol. You need only
implement the methods and should not (in this case cannot) adopt the
protocol in the declaration of the class as you have shown below. There
is also no need to import the table view header file separatly, it's
part of the heders you import when importing Cocoa.h.
j o a r
On Sunday, Jan 26, 2003, at 20:22 Europe/Stockholm, Pierre Neihouser
wrote:
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.
_______________________________________________
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.