Re: First-responder action in TextEdit
Re: First-responder action in TextEdit
- Subject: Re: First-responder action in TextEdit
- From: Todd Ransom <email@hidden>
- Date: Fri, 21 Jul 2006 11:11:06 -0600
MultiplePageView is just a container for a series of NSTextViews. The
copy action is implemented in NSTextView.
Todd Ransom
Return Self Software
http://returnself.com
On Jul 21, 2006, at 4:27 AM, email@hidden wrote:
Hello all,
As I'm trying to understand how TextEdit works, I'm
stuck on the
following question :
-How does the "-copy:" first-responder action get
executed in
"Wrap to Page" mode ?
Which object in the responder chain eventually carries it out ?
From experimenting with the source code (from /Developer/
Examples/AppKit)
I gathered the following :
-In "Wrap to Page" mode, the main active view is
MultiplePageView, whose
superclass
is NSView (so it does not implement a -copy: method).
-When a copy operation is performed in this mode, the "Document"
object
gets
modified along with the NSTextStorage and NSLayoutManager
associated to it,
but neither of these have a -copy: method.
Perhaps I don't know how to use the debugger well enough to
visualize
how the "-copy" action is performed.
Ewan
_______________________________________________
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
_______________________________________________
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