• 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
Return in NSSearchField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Return in NSSearchField


  • Subject: Return in NSSearchField
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 4 Jan 2010 11:56:54 +0700

 The docs say: " By default, the cell’s action is invoked during typing after a short delay."
And it also "sends the action message when the user presses the Return key".

Both are things I like as they are.

But: I would also like to know, whether the action was send because the user did press the Return key or just because a short delay has passed.

How could I get this information?

The reason: When the user hits Return, I want to add the string into a history of searched items.

I guess, I could, whenever the action method is sent (or when the observed text changes), look at the first item in recentSearches and compare it to the previous value. Kind of convoluted - so my hope for a more direct way.

10.6.2

Kind regards,

Gerriet.

_______________________________________________

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: Need font anti aliasing techniques
  • Next by Date: iPhone: load cell from XIB slows down tableview?
  • Previous by thread: Re: Need font anti aliasing techniques
  • Next by thread: iPhone: load cell from XIB slows down tableview?
  • Index(es):
    • Date
    • Thread