• 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: `Controller' does not respond to `setupToolbar'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >`Controller' does not respond to `setupToolbar' (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Re: NSAutoreleasePool: how does it really work?
  • Next by Date: Maybe a little off topic but important
  • Previous by thread: `Controller' does not respond to `setupToolbar'
  • Next by thread: Re: NSAutoreleasePool: how does it really work?
  • Index(es):
    • Date
    • Thread