• 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
First-responder action in TextEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: First-responder action in TextEdit
      • From: Todd Ransom <email@hidden>
  • Prev by Date: Re: application preferences
  • Next by Date: RE: How to get the image mask path
  • Previous by thread: Re: application preferences
  • Next by thread: Re: First-responder action in TextEdit
  • Index(es):
    • Date
    • Thread