• 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
Re: Application without menu: How to get Cmd-C event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application without menu: How to get Cmd-C event?


  • Subject: Re: Application without menu: How to get Cmd-C event?
  • From: daniel <email@hidden>
  • Date: Sun, 23 Jan 2005 13:08:55 -0800

I had to do something like this in one of my applications.

What I did, which works but may not be the ideal solution, is to put several buttons in the window, but outside of the visible bounds of the view. Set them up with the desired keyboard equivalents, and connect them to FirstResponder with, e.g., the "copy" action.

Daniel

On Jan 23, 2005, at 10:09 AM, Stefan Landvogt wrote:

Hi,

I am writing an application without a menu and without any appearance in the dock.
Windows etc. are working fine, but Cut/Copy/Paste in text input fields is not working anymore, because there is no Edit-Menu.


Is there an easy way to 'simulate' that Edit menu?

Writing a method like -(IBAction)paste:(id)sender; for the application delegate or the windows delegate did not work.

Thanks for any hint,

Stefan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Application without menu: How to get Cmd-C event? (From: Stefan Landvogt <email@hidden>)

  • Prev by Date: Re: Couple of questions about the "SEL" datatype
  • Next by Date: Re: Application without menu: How to get Cmd-C event?
  • Previous by thread: Re: Application without menu: How to get Cmd-C event?
  • Next by thread: Multiple Windows for an App question
  • Index(es):
    • Date
    • Thread