Re: Editing a multi-line NSTextField as a single line

2009-02-24 Thread Martin Wierschin
When editing, I would like the editor which appears to edit this text on just a single line and not do any wrapping. I was able to accomplish this by doing: [[textField cell] setLineBreakMode:NSLineBreakByClipping]; before I start the edit session. However, I am curious (because I think it

Editing a multi-line NSTextField as a single line

2009-02-24 Thread Eric Gorr
I start an edit session of a NSTextField by doing the following: [textField selectText:nil]; NSTextView *currentEditor = (NSTextView*)[textField currentEditor]; NSPoint windowLocation = [theEvent locationInWindow]; NSPoint screenLocation = [[self window] con