Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSearchField - detect loss of focus



To revive an old thread:

http://www.cocoabuilder.com/archive/message/cocoa/2006/1/6/153953

Corbin wrote:

Take a look at resignFirstResponder. You'll have to subclass
NSSearchField, and you can send your delegate a message in this method.

I'm running into a similar need here - I have an NSTextField subclass that wants to know when it is no longer "firstResponder".


I put firstResponder in quotes because NSTextField is never firstResponder for long. In -becomeFirstResponder it sets up the field editor and makes it the firstResponder. (Thus overriding - resignFirstResponder doesn't help, since that happens right away.)

Have I missed something obvious, or is this simply incorrect advice?


Thanks, Jim _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.