Re: Stop editing session of NSTextField

2010-02-24 Thread Erik Buck
send [[textField window] makeFirstResponder:[textField window]]; to finish any editing in progress in textField or any other text field within the window. or see "Forcing the End of Editing" at http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextEditing/Tasks/BatchEditing.h

Re: Stop editing session of NSTextField

2010-02-24 Thread Mark Townsend
The way that I did it was to change the FirstResponder. Generically I did: [[self window] makeFirstResponder:self]; This is on a NSWindowController sub-class, but it should work on anything that you can change the FirstResponder on. --- Mark Townsend http://www.markltownsend.com On Wed, Feb 2