Re: `Controller' does not respond to `setupToolbar'
Re: `Controller' does not respond to `setupToolbar'
- Subject: Re: `Controller' does not respond to `setupToolbar'
- From: j o a r <email@hidden>
- Date: Tue, 18 Mar 2003 11:22:03 +0100
You probably have something like this:
- (void) awakeFromNib
{
[self setupToolbar];
}
- (void) setupToolbar
{
// Stuff
}
Now, if you haven't declared the "setupToolbar" method in the header of
the class, the compiler doesn't know it exists yet - because it is
implemented after it is first referenced. Either simply change the
order of the implementation of the two methods, or add the declaration
of the method to the header.
j o a r
On Tuesday, Mar 18, 2003, at 11:11 Europe/Stockholm, Peter Karlsson
wrote:
I got a warning when building, the app works as expected but I can't
figure out what is wrong:
Controller.m:8: warning: `Controller' does not respond to
`setupToolbar'
-(void)awakeFromNib
{
[self setupToolbar];
}
_______________________________________________
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.