Re: Another try: removing the focus from an NSTextField
Re: Another try: removing the focus from an NSTextField
- Subject: Re: Another try: removing the focus from an NSTextField
- From: Matt Neuburg <email@hidden>
- Date: Thu, 8 Aug 2002 07:35:33 -0700
On Thu, 08 Aug 2002 01:13:57 +0200, Marco Binder <email@hidden> said:
>
I have an NSTextField and want to remove the focus from it after the user is
>
done editing
If the user clicks in a different textfield or hits Tab, the focus is
removed already. Therefore the only case you have to worry about is when
the user hits Return. Therefore implement the delegate method
control:textView:doCommandBySelector:
and catch the insertNewline: selector. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.