Skip navigation.
 
ml[Leopard, GC] Custom view in NSMenuItem crashes
FROM : Pierre Bernard
DATE : Tue Jan 29 18:21:45 2008

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

Related mailsAuthorDate
ml[Leopard, GC] Custom view in NSMenuItem crashes Pierre Bernard Jan 29, 18:21
mlRe: [Leopard, GC] Custom view in NSMenuItem crashes Peter Ammon Jan 29, 21:36