Hello Martin,
Now I want to offer the user a context menu to perform operations on the attachment (open, save, etc). So far I was unable to find a way to intercept a 'right-click' on the nstextview to offer a custom context menu.
You can subclass NSTextView and override "menuForEvent:", introspecting the NSEvent and selection as you see fit.
The context menu that appears has two additional menu items: "Import Image" and "Capture Selection from Screen".
Before you display your menu, call [menu setAllowsContextMenuPlugIns:NO] to disable those kinds of additions.
I hope that helps, ~Martin _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
