Skip navigation.
 
mlRe: Contextual menu for Text fields/views?
FROM : Seth Willits
DATE : Sun Dec 19 21:45:35 2004

On Dec 19, 2004, at 12:39 PM, Thomas Lachand-Robert wrote:

> There is a default contextual menu for all text views, and also for 
> text field (though I suspect it is the field editor's menu), with 
> items like cut/copy/spell etc.
>
> What is the way to add some items to this contextual menu?
>
> Also is it possible to have a contextual menu in NSBox? Doing so in IB 
> (connecting the "menu" outlet) doesn't work in either case.


If you set the menu (setMenu or just use the outlet) of any view, it'll 
use that menu as the contextual menu.



Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic

Friendship is a beautiful thing. "The best and most beautiful things in 
the
world cannot be seen or even touched - they must be felt with the 
heart."
    -- Hellen Keller
------------------------------------------------------------------------
---

Related mailsAuthorDate
mlContextual menu for Text fields/views? Thomas Lachand-Rob… Dec 19, 21:39
mlRe: Contextual menu for Text fields/views? Seth Willits Dec 19, 21:45
mlRe: Contextual menu for Text fields/views? Thomas Lachand-Rob… Dec 19, 22:16
mlRe: Contextual menu for Text fields/views? Douglas Davidson Dec 19, 22:26
mlRe: Contextual menu for Text fields/views? Seth Willits Dec 20, 05:36
mlRe: Contextual menu for Text fields/views? Thomas Lachand-Rob… Dec 20, 09:36
mlRe: Contextual menu for Text fields/views? Seth Willits Dec 20, 21:43