• 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
2 more NSTextInput marking questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2 more NSTextInput marking questions


  • Subject: 2 more NSTextInput marking questions
  • From: Jonathan del Strother <email@hidden>
  • Date: Tue, 27 Sep 2005 19:04:48 +0100

I have 2 more issues with my custom NSTextInput class, then (hopefully) it's done.

First off - I'm having trouble dealing with mouse clicks in marked areas. I need to update the cursor position within the marked area, so call NSInputManager's markedTextSelectionChanged: method, giving it the new cursor location. It totally ignores me, and any future additions to the mark continue to be appended to the end of the mark, rather than where the cursor ought to be.
markedTextAbandoned: works fine. I'm wondering if I'm calling the wrong method - it's a cursor position rather than a selection - but it seems to be the most suitable thing around.



Secondly, if you go into TextEdit and start typing a mark, then hit escape, the mark is abandoned. If I hit escape during a mark input, I don't get a message telling me to unmark the mark, nor do I get a message telling me that escape has been hit. So there appears to be no way of dealing with this in the same way as, for instance, TextEdit. What am I missing?



Thanks for any help. (Thanks to Aki in particular, as he appears to be the only person who understands how the hell NSTextInput is supposed to work :) )



Jon _______________________________________________ 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: 2 more NSTextInput marking questions
      • From: Aki Inoue <email@hidden>
  • Prev by Date: sync quicktime playback over multiple computers
  • Next by Date: Re: Softening NSAttributedString
  • Previous by thread: Re: sync quicktime playback over multiple computers
  • Next by thread: Re: 2 more NSTextInput marking questions
  • Index(es):
    • Date
    • Thread