Re: Toolbar customizer crashes on Leopard when using menu delegate
Re: Toolbar customizer crashes on Leopard when using menu delegate
- Subject: Re: Toolbar customizer crashes on Leopard when using menu delegate
- From: Markus Spoettl <email@hidden>
- Date: Wed, 24 Mar 2010 13:12:58 -0400
On Mar 23, 2010, at 10:02 PM, Markus Spoettl wrote:
> My toolbar contains an item hosting a NSPopUpButton which has a menu. That menu contains regular items and a sub-menu which has its delegate assigned to the File's Owner because it's dynamic and needs to be rebuilt each time it is displayed. I have found out that the mere fact the delegate is set causes a crash when the toolbar customizer is created (through "Customize Toolbar…").
In the unlikely event someone here finds this interesting, here's some more information:
Turns out that the menu delegate doesn't have to be set up in the NIB file to produce this crash, it even goes down if the (sub-) menu delegate is set programmatically (I did it in the -toolbarWillAddItem: notification, but it probably doesn't matter).
Well, I can't have a delegate driven dynamic menu in a NSPopUpButton in a toolbar on Leopard then I guess - at least not using the same logic that works on 10.6.
Regards
Markus
--
__________________________________________
Markus Spoettl
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