Re: Calling commitEditing text field loses focus

Jim Correia <[email protected]> Wed, 21 Dec 2011 08:52:50 -0800
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Dec 21, 2011, at 8:50 AM, Christiaan Hofman wrote:

> Sounds like overkill to me. I guess as one has to write and call a =
custom method for this anyway that one can just as well pass the =
relevant window as an argument to that method =
-(BOOL)commitEditingAndRestoreFirstResponderForWindow:(NSWindow =
*)aWindow.

In the simple case, that should work fine.

In the more complex case, you may have multiple document windows and =
multiple inspector windows to consider.

If the simple case covers your needs, there=92s no reason to worry about =
the complex case, for now.

Jim=