Re: Duplicating Apple search field UI
Re: Duplicating Apple search field UI
- Subject: Re: Duplicating Apple search field UI
- From: Andrew Pinski <email@hidden>
- Date: Sun, 9 Feb 2003 10:24:19 -0800
I say file a bug about it than ask here for sample code, this is a
list provided by Apple and run by Apple but not the right way to
communicate with Apple, this has been mentioned some many time by
people at Apple (now including me) and by other people.
Thanks,
Andrew Pinski
email@hidden, my work account
email@hidden, my school account
On Sunday, Feb 9, 2003, at 10:13 US/Pacific, Greg Casey wrote:
You know... many of us are trying to duplicate Apple's search field
UI, since it is fairly prevalent throughout all of Apple's apps
(including the Finder and all of the iApps). It seems to me like Apple
should just go ahead and share the code necessary to implement this
control because it is in their best interest to make sure that we all
present a standard interface to our users.
I don't want to take this list off on a tangent, but I am hoping that
the Apple guys who monitor this list would take note of the fact that
we are all trying to mimic their search fields and provide some
example code for how to do it. :-)
Thanks!
-gtc
On Sunday, February 9, 2003, at 03:07 AM, Keith Bauer wrote:
I'm trying to duplicate Apple's search field UI, where a piece of
grayed-out text indicates what will be searched as long as the field
is empty and doesn't have key focus.
I've subclassed NSTextField, and I can (apparently reliably) find out
when the user begins editing by overriding -becomeFirstResponder.
Unfortunately, I don't get a corresponding -resignFirstResponder when
the user stops editing the field. I can trap -textShouldEndEditing:,
and that works most of the time, but when the user clicks in the
empty text field and then clicks away again, I don't get any
notification.
How can I reliably detect when my text field has gained and lost key
focus?
Thanks,
Keith
_______________________________________________
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.
-gtc
_______________________________________________
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.
_______________________________________________
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.