Cancel button in NSSearchField
Cancel button in NSSearchField
my app contains an NSSearchField in the toolbar of the various
document windows. and i have the various predicates of the search
field bound to iVars in my app. additionally, i have my own predicate
builder that lets the user build complex search predicates. when the
user has built a complex predicate, i set the placeholder text of the
search field to be "Custom Filter".
all this works fine.
the problem is that in the situation in which there is a custom
filter, there is no text for the search field, and thus the cancel
button doesn't show. i've worked around this for now by having a
"Cancel Custom Filter" menu item in the search field's menu.
is there anyway to get the cancel button to show if the search field
has my special ("Custom Filter") placeholder text?
thanx,
ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden