• 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: populate/resize an already open NSMenu in background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: populate/resize an already open NSMenu in background


  • Subject: Re: populate/resize an already open NSMenu in background
  • From: Martin Wierschin <email@hidden>
  • Date: Mon, 29 Dec 2008 18:19:07 -0800

Hi Peter,

I have a menu that needs to be populated on demand, so I've set an NSMenu delegate and note the update request in "menuNeedsUpdate:".
...
The problem is that the NSMenu will not resize itself to show items added from outside of "menuNeedsUpdate:".
...
A third possible cause is that you're on Tiger. Changing a menu while it is open is only supported on Leopard.

This was exactly it, as I still do most of my development on ye olde Tiger. Everything works perfectly on Leopard. Not a big deal in this case to make the feature 10.5 only.


Thanks for your help! Cheers,

~Martin

_______________________________________________

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: 
 >populate/resize an already open NSMenu in background (From: Martin Wierschin <email@hidden>)
 >Re: populate/resize an already open NSMenu in background (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Overriding NSHTTPCookieStorage for WebView
  • Next by Date: Re: [SOLVED!] Re: Printing a range of text in a particular container --
  • Previous by thread: Re: populate/resize an already open NSMenu in background
  • Next by thread: Determining width of a cell in an NSOutlineView
  • Index(es):
    • Date
    • Thread