• 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
NSSearchField search menu issue - menu not appearing in 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSearchField search menu issue - menu not appearing in 10.4


  • Subject: NSSearchField search menu issue - menu not appearing in 10.4
  • From: Matthew Holiday <email@hidden>
  • Date: Fri, 23 Sep 2005 11:04:50 -0500

I've got an app built in Panther which programmatically sets up a search menu template for an NSSearchField. I do this in the - awakeFromNib method by creating a menu and its items from scratch, then calling -setSearchMenuTemplate with the menu on the search field's cell. I update the menu template and re-install it in the cell when the user selects one of the custom search criteria (or clicks the cancel search button, clearing any criteria).

It works on Panther, but when I run the app on Tiger, the menu doesn't display, although (a) the search field stops blinking the cursor when the menu should be appearing (and blanks out the placeholder text), and (b) the search field cell still shows that it has the template (initially and at all times when the menu's been updated and re-installed). I rebuilt the app under Tiger, still targeting Panther for compatibility, and that version also works on Panther but not on Tiger. The search function still works fine, and the recent searches function works -- it updates the user preferences. No crash, no logs, nothing -- just no menu popping down.

This does not appear to be the bug discussed a few months ago on the list; it shows in Tiger not Panther, and is not related to setting up the menu in IB.

Any ideas (a) what this bug is, and/or (b) how to see what's happening when the search field is handling the mouse-down event?

I'm not using predicates for the search field since they won't work on pre-10.4 systems; that's why I set up the search menu myself. Is this approach still supported on Tiger? Is there another method call I've overlooked?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: NSArrayController selectNext updating late (From: email@hidden)
 >Re: NSArrayController selectNext updating late (From: Scott Anguish <email@hidden>)

  • Prev by Date: How do I upload data to a FTP server?
  • Next by Date: RE: How do I upload data to a FTP server?
  • Previous by thread: Re: NSArrayController selectNext updating late
  • Next by thread: Service,NSSavePanel, & keyboard focus ultraweirdness
  • Index(es):
    • Date
    • Thread