Re: Knowing how a Text Editing Session ended

2010-07-27 Thread Motti Shneor
Thanks Keary, In the mean time I already done lot's of Googling and dug into the docs, but what I found was quite discouraging. First, the FieldEditor is a preconfigured instance of NSTextView attached to the window. There's only one field-editor serving all the NSTextField's of the window. I

Re: Knowing how a Text Editing Session ended

2010-07-22 Thread Ross Carter
On Jul 22, 2010, at 4:47 AM, Motti Shneor wrote: > My Question: How can I Persuade the FieldEditor to end an Editing Session > when these specific key-combinations occur? Should I override something? Is > there a specific Delegate for that? You might try subclassing the field editor and overri

Re: Knowing how a Text Editing Session ended

2010-07-22 Thread Keary Suska
On Jul 22, 2010, at 2:47 AM, Motti Shneor wrote: > Thanks Mike --- Following your recommendation and the docs, I managed to > extract the value of the @"NSTextMovement" key from the notification userInfo > Dictionary, which contains just what I needed. > > However, I found that my problem is a

Re: Knowing how a Text Editing Session ended

2010-07-22 Thread Motti Shneor
Thanks Mike --- Following your recommendation and the docs, I managed to extract the value of the @"NSTextMovement" key from the notification userInfo Dictionary, which contains just what I needed. However, I found that my problem is a bit deeper --- I want to finish the text editing session

Re: Knowing how a Text Editing Session ended

2010-07-21 Thread Mike Abdullah
Look up the docs on NSTextDidEndEditingNotification. I believe the same user info gets handed out in controlTextDidEndEditing: On 21 Jul 2010, at 15:30, Motti Shneor wrote: > Hello Everyone. > > I'm implementing a programmatic wrapper for using an NSTextField on our > custom view --- > > I pr

Knowing how a Text Editing Session ended

2010-07-21 Thread Motti Shneor
Hello Everyone. I'm implementing a programmatic wrapper for using an NSTextField on our custom view --- I programmatically create an NSTextField, Embed it in the super-view, then let the user type in text and as soon as the user finishes, I need to collect the typed string, plus the way the