• 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
Where did I just type that character?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where did I just type that character?


  • Subject: Where did I just type that character?
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Sat, 26 Aug 2006 03:19:41 -0700

I have an NSTextStorage whose contents are being displayed in several NSTextViews. After typing a character into one of the text views, how can I programmatically detect which text view it is that I typed into?

I noticed that the first responder status of the text views does not change if I type past the boundaries of the first text view into a second one (which I am adding in response to layoutManager:managerdidCompleteLayoutForTextContainer:atEnd:). I'd like to use the aforementioned detection to automatically set the second text view as the first responder.

My text views hilite in a special way when they become first responder, and I'd like the hilite to transition between text views as I type between them.

Thanks!

    ~     Mike
        alephx01 (at) mac (dot) com





_______________________________________________
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: Where did I just type that character?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: transparent proxy using forwardInvocation, how?
  • Next by Date: Re: try/catch/throw/finally example?
  • Previous by thread: Re: Re: transparent proxy using forwardInvocation, how?
  • Next by thread: Re: Where did I just type that character?
  • Index(es):
    • Date
    • Thread