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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com