• 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: NSMenuItem's selectors messages not sent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenuItem's selectors messages not sent


  • Subject: Re: NSMenuItem's selectors messages not sent
  • From: Steven Degutis <email@hidden>
  • Date: Mon, 31 Aug 2009 18:44:59 -0500

Lorenzo,
My first guess would be that you must have turned on garbage collection at
some point, and have a controller object that's not strongly referenced by
other objects, floating about in your NIB. If this is the case, the object
would deallocate pretty soon after your NIB loads, and no messages
associated with your menu items would get sent.

However, when menu items can find no targets matching their selector in the
responder chain, they usually are disabled, rather than enabled and doing
nothing. However, if you don't have them set to auto-enable themselves, this
isn't the case.

In any event, you can use gdb to trace the program's execution flow to find
out exactly when certain things are happening, and put breakpoints on
questionable lines of code.

--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/


On Mon, Aug 31, 2009 at 4:20 PM, Lorenzo Thurman <email@hidden>wrote:

> I have two applications, both NSStatusItems. Upon upgrading to Snow Leopard
> (from 10.5), I've found that none of the messages associated with the menu
> items are called. As near as I can tell, the messages are never dispatched,
> at least the breakpoints in the methods are never hit. I can't find
> anything
> in the release notes to provide a clue. Can someone provide me with some
> guidance as to what may be wrong? And as a side note, how can I use the
> debugger to detemine if a message is even dispatched.Thanks
>
> --
> "My break-dancing days are over, but there's always the funky chicken"
> --The Full Monty
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSMenuItem's selectors messages not sent (From: Lorenzo Thurman <email@hidden>)

  • Prev by Date: saving files/folders in foreign language names
  • Next by Date: Re: saving files/folders in foreign language names
  • Previous by thread: NSMenuItem's selectors messages not sent
  • Next by thread: NSInternalInconsistencyException -- keyLoopGroupingView should be a NSToolbarView
  • Index(es):
    • Date
    • Thread