Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jsnuff1

macrumors 6502a
Original poster
Oct 4, 2003
730
340
NY
I have a NSTextVew which I want to add a few menu items to it's default menu it shows when you right click on the text view (the cut copy past etc menu).

I have tried attaching my custom menu to the NSTextView menu outlet in IB, and it correctly adds my items, but it gets rid of all the other menu items except for Search in Spotlight, Search in Google, and Lookup in Dictionary.

How can I got about adding my items without removing any of the default items in the menu?
 
You might well be able to do it programatically at runtime: don't assign a new menu, access the NSMenu at runtime and add/remove items.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.