• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cancel button in NSSearchField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cancel button in NSSearchField


  • Subject: Cancel button in NSSearchField
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 1 Jun 2009 09:34:17 -0700

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


  • Prev by Date: highlighting menu item in main menu bar
  • Next by Date: Re: Several Questions
  • Previous by thread: Re: highlighting menu item in main menu bar
  • Next by thread: Re: [Core Data] mergeChangesFromContextDidSaveNotification: and thread safety
  • Index(es):
    • Date
    • Thread