• 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: Problem with refreshing NSMenuItems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with refreshing NSMenuItems


  • Subject: Re: Problem with refreshing NSMenuItems
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 08 Mar 2012 18:41:56 -0800

On Mar 7, 2012, at 2:40 AM, Prime Coderama wrote:

> I then dynamically add n-amount of NSMenuItems between (2) and (3). This works great.
>
> The problem I am having, is when I hit "Refresh"

I haven't studied your case in detail, but the usual mechanism for implementing dynamic menus is the delegate method -menuNeedsUpdate:.  Cocoa invokes it for you whenever the menu is about to be displayed.  You don't need a "Refresh" button.


_______________________________________________

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: 
 >Problem with refreshing NSMenuItems (From: Prime Coderama <email@hidden>)
 >Re: Problem with refreshing NSMenuItems (From: Michael Babin <email@hidden>)

  • Prev by Date: Re: @-directives
  • Next by Date: Re: @-directives
  • Previous by thread: Re: Problem with refreshing NSMenuItems
  • Next by thread: Re: Problem with refreshing NSMenuItems
  • Index(es):
    • Date
    • Thread