• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Text field and copy/paste... (still doesn't work)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Text field and copy/paste... (still doesn't work)


  • Subject: Text field and copy/paste... (still doesn't work)
  • From: Thierry Bucco <email@hidden>
  • Date: Thu, 27 Sep 2001 17:46:43 +0200

Hi,

I am unable to get cut,copy..; working using menu (and shortcut).

Here is the content of my MainMenu.nib :

WindowController (NSObject, contains outlets for the mainWindow)

File'sOwner
delegate->WindowController

mytextField (NSTextField), I want to use cut/paste on it
target : FirstResponder.initialFirstResponder

EditMenu (NSMenu) it appears when I click onto a button as a contextual menu, contain Cut,Paste...
Cut - target : FirstResponder.cut
Copy - target : FirstResponder.copy

And at the beginning I call [WindowController makeFirstResponder:mainWindow]

mainWindow is my main window containing the text view.

But it doesn't work, the edit menu is disabled, and it seems that cut function is called in WindowController.

I need to recall that I have a custom window withtout a menu bar, because my application is still in foreground.
The main menu is visible when user clicks on a button (contextual menu).

What is the problem ?

Thanks a lot for your help

Thierry


  • Follow-Ups:
    • Re: Text field and copy/paste... (still doesn't work)
      • From: Stefan Jung <email@hidden>
    • Re: Text field and copy/paste... (still doesn't work)
      • From: Stefan Jung <email@hidden>
  • Prev by Date: Re: AppleScript Studio.
  • Next by Date: Re: AppleScript Studio.
  • Previous by thread: NSTimer in Java
  • Next by thread: Re: Text field and copy/paste... (still doesn't work)
  • Index(es):
    • Date
    • Thread