• 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: No MainNibFile causes buttonPressed error message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No MainNibFile causes buttonPressed error message


  • Subject: Re: No MainNibFile causes buttonPressed error message
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sat, 6 Jul 2002 10:56:08 +0100

On Saturday, July 6, 2002, at 01:06 am, Lisa Zorn wrote:

The only issue is that at launch, the following line _always_ prints to the console 3 times:

Could not connect the action buttonPressed: to target of class NSApplication

Not a big issue, but kind of annoying since users see it and thing something is going wrong. I don't _think_ anything is going wrong, but I'm not sure what this is referring to.

Do you have any duplicated action names?

I had a similar problem to this. My app delegate, in its -init: instantiates a subclass in a separate nib. This subclass had an IBAction with an identical name to one in the app delegate. I got the "could not connect action ... to target of class" warning. In my case it did cause a problem, because the action wouldn't execute. I renamed the IBAction, and the problem went away.
_______________________________________________
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: 
 >No MainNibFile causes buttonPressed error message (From: Lisa Zorn <email@hidden>)

  • Prev by Date: Re: initialFirstResponder weirdness
  • Next by Date: Re: Setuid?
  • Previous by thread: No MainNibFile causes buttonPressed error message
  • Next by thread: Re: No MainNibFile causes buttonPressed error message
  • Index(es):
    • Date
    • Thread