• 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
Resorting normal field editor behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resorting normal field editor behaviour


  • Subject: Resorting normal field editor behaviour
  • From: K.Darcy Otto <email@hidden>
  • Date: Wed, 2 Apr 2008 21:54:02 -0700

I need to intercept changes in my NSTableView's field editor, and I am able to do this successfully implementing controlTextDidChange: in my controller. I do this by having my controller create a field editor (fieldEd, an NSTextView) and setting the delegate of that field editor to my controller. Then, I use windowWillReturnFieldEditor: to return fieldEd, so that when the NSTableView wants to do some editing, it gets pointed to the right object. So far, so good.

The problem is that I lose some normal field-editor behaviour. In particular, the field editor does not give up control when I press <enter>, <tab> or <backtab>, but instead enters these characters directly into the field (there may be some other issues as well; arrows work as expected). How do I restore normal behaviour, and (for the interest's sake) why has normal behaviour disappeared? Thanks.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Resorting normal field editor behaviour
      • From: Nate Weaver <email@hidden>
  • Prev by Date: Re: GCDrawKit programmatically create object
  • Next by Date: 1 pixel bordered CALayer renders improperly
  • Previous by thread: Re: duplicate symbol error
  • Next by thread: Re: Resorting normal field editor behaviour
  • Index(es):
    • Date
    • Thread