[Leopard, GC] Custom view in NSMenuItem crashes
[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