Am 03.12.2009 um 17:55 schrieb Keith Blount:

> I have an NSTextView subclass that provides a custom contextual menu by 
> overriding -menuForEvent:. Because I override this, I have to provide any 
> menu items I want to retain from the original menu myself.

Can't you simply use something like
NSMenu *theMenu = [super menuForEvent:theEvent];
early in your code and let the system do the heavy lifting?

Cheers,

Knut





_______________________________________________

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

Reply via email to