• 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
[Leopard, GC] Custom view in NSMenuItem crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Leopard, GC] Custom view in NSMenuItem crashes


  • Subject: [Leopard, GC] Custom view in NSMenuItem crashes
  • From: Pierre Bernard <email@hidden>
  • Date: Tue, 29 Jan 2008 18:21:45 +0100

Using a custom view in an NSMenuItem causes a crash in GC applications.

A plain NSView works fine. An NSView with an enclosed NSSearchField leads to a crash when the menu item is opened multiple times.
A sample project can be found at http://www.houdah.com/MenuView.zip


I have filed this under Radar #5712323. Now I am desperately searching for a workaround.

I have tried keeping references to the view and the search field. Just to be sure GC doesn't go collect them. Doesn't help.
I have tried removing the view on menuDidClose: and adding back in a fresh view on menuWillOpen:. To my surprise this didn't make any difference.


Best,
Pierre Bernard

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: [Leopard, GC] Custom view in NSMenuItem crashes
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: CoreData - multiple stores advice...
  • Next by Date: Re: The mouse is where, again?
  • Previous by thread: Re: Close a menu programmatically
  • Next by thread: Re: [Leopard, GC] Custom view in NSMenuItem crashes
  • Index(es):
    • Date
    • Thread