Cut, Copy, & Paste Question.
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