On 20/02/2010, at 7:45 AM, David M. Cotter wrote: > NSMenuItem* > nsMenuItem([platMenu itemAtIndex: itemIndexS]); > DVAMacMenuItem* dvaItem((DVAMacMenuItem > *)nsMenuItem); > > [dvaItem > setAction:@selector(dispatchMenuSelection:)]; > [dvaItem setTarget: dvaItem];
Maybe there's some side-effect of making the target the item itself. It's certainly extremely unusual to do that, and would tend to suggest MVC is being violated. It possible that NSMenuItem's designers didn't anticipate that possibility and that's what's hitting you. Try setting the target to something else and see if that target gets called in the same pattern. --Graham _______________________________________________ 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