First-responder action in TextEdit
First-responder action in TextEdit
- Subject: First-responder action in TextEdit
- From: email@hidden
- Date: Fri, 21 Jul 2006 12:27:24 +0200 (CEST)
- Importance: Normal
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