Re: Cut, Copy, & Paste Question.
Re: Cut, Copy, & Paste Question.
- Subject: Re: Cut, Copy, & Paste Question.
- From: Michael Babin <email@hidden>
- Date: Sun, 5 Mar 2006 11:00:40 -0600
On Mar 1, 2006, at 6:11 PM, Ian was here wrote:
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:
You connected these menu items to what class? A document? A view?
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.
Generally speaking, the correct approach is to leave these menu items
connected to the First Responder and make sure that you implement the
corresponding methods on the appropriate object in the responder chain.
--
Michael Babin email@hidden
Order N Development, LLC http://www.orderndev.com/
Goldfish Aquarium for Mac: http://www.lifeglobe.com/product/
index.php?pltid=2&ref=OrderNDev
_______________________________________________
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