• 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
NSTextInput protocol problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextInput protocol problem


  • Subject: NSTextInput protocol problem
  • From: Glen Simmons <email@hidden>
  • Date: Mon, 28 Aug 2006 18:24:02 -0500

My app has an NSView subclass that displays different kinds of objects which have a text label. It has a feature that allows the user to edit the label simply by starting to type while the object is selected. When the view gets an -insertText: message, I get the window's field editor, set it up and make it first responder. This works fine for regular characters, but not so much for multi- keystroke characters like the accented e (option-e, e). I've implemented the NSTextInput protocol on my view, but can't quite figure out how to "relay" the messages to the field editor. I tried doing the field editor setup in -setMarkedText:selectedRange: and then calling -setMarkedText:selectedRange: on the field editor. That appears to work since the marked accent appears in the editor, but the next character typed is not combined with it. I'm guessing that the change of first responder breaks the connection between the option-e and the next character typed. Any thoughts on how to do this?

Thanks,
Glen Simmons
_______________________________________________
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


  • Prev by Date: Re: I'm having trouble retaining a NSColor
  • Next by Date: Re: NSSearchField Case Insensitive
  • Previous by thread: Re: NSATSTypesetter garbled text when switching to next container
  • Next by thread: Re: NSTableColumn subclass and custom binding (solution!)
  • Index(es):
    • Date
    • Thread