• 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
Cut, Copy, & Paste Question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cut, Copy, & Paste Question.


  • Subject: Cut, Copy, & Paste Question.
  • From: Ian was here <email@hidden>
  • Date: Wed, 1 Mar 2006 16:11:50 -0800 (PST)

I have a drawing application which allows the user to
create ovals, rectangles, and text objects. I
implemented Cut, Copy, and Paste of these objects. I
did so by connecting the Cut, Copy, and Paste menu
items to my class and adding the following methods:


- (IBAction)cut:(id)sender
{
   // Cut an object.
}


- (IBAction)copy:(id)sender
{
  // Copy an object.
}


- (IBAction)paste:(id)sender
{
  // Paste an object.
}



The problem that I am having is that when a text
object is in focus (text can be edited within a text
view), the Cut, Copy, and Paste no longer function. It
did function when the Cut, Copy, and Paste menu items
were connected to the Nib file's First Responder.

The question I have is how can I redirect the Cut,
Copy, and Paste menu items when the text object comes
into focus.

Thanks,

Ian


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
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

  • Follow-Ups:
    • Re: Cut, Copy, & Paste Question.
      • From: Michael Babin <email@hidden>
  • Prev by Date: Re: interface builder's communication problem
  • Next by Date: NSMovie jpg question
  • Previous by thread: Re: interface builder's communication problem
  • Next by thread: Re: Cut, Copy, & Paste Question.
  • Index(es):
    • Date
    • Thread