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
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 mails | Author | Date |
|---|---|---|
| Pierre Bernard | Jan 29, 18:21 | |
| Peter Ammon | Jan 29, 21:36 |






Cocoa mail archive

