FROM : Todd Ransom
DATE : Fri Jul 21 19:11:06 2006
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_removed> 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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Fri Jul 21 19:11:06 2006
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_removed> 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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| delanoy | Jul 21, 12:27 | |
| Todd Ransom | Jul 21, 19:11 | |
| delanoy | Jul 21, 20:42 | |
| Todd Ransom | Jul 22, 18:17 |






Cocoa mail archive

