• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: First-responder action in TextEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: First-responder action in TextEdit
      • From: email@hidden
References: 
 >First-responder action in TextEdit (From: email@hidden)

  • Prev by Date: Re: writing huge C-array to a file
  • Next by Date: Access to DataSource objects from NSTableView
  • Previous by thread: First-responder action in TextEdit
  • Next by thread: Re: First-responder action in TextEdit
  • Index(es):
    • Date
    • Thread