• 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
Re: Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button?


  • Subject: Re: Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button?
  • From: Andrew Thompson <email@hidden>
  • Date: Tue, 25 Dec 2007 12:36:14 -0500

Right. I little time in the debugger and I answered my own question.

The description makes it sound more like NSFontManager's changeFont, whereas its really much simpler :)

Thanks,

AndyT

On Dec 24, 2007, at 5:51 PM, Ken Ferry wrote:

Hi Andrew,

Hm, the docs make this sound more special than it really is. I'll file a bug.

The cancel button acts the same as the user selecting the text in the
field and deleting it.  The usual action message is sent in the usual
way, and the stringValue of the control will be @"".

Ken Ferry
Cocoa Frameworks

On Dec 24, 2007 11:19 AM, Andrew Thompson <email@hidden> wrote:
According to this page:

http://developer.apple.com/documentation/Cocoa/Conceptual/SearchFields/Articles/ConfiguringTargetAction.html

Search fields also generate a secondary action message, one intended
to cancel the current search. When a user clicks the cancel button,
the action message is sent up the responder chain to the first object
that handles it. This object deletes the contents of the search field
and activates the control. It also checks for an empty string value,
which indicates that the search should be stopped.


That's nice and all, but is it really true? Do I need to set the action sent up the responder chain? What's the default?


AndyT (lordpixel - the cat who walks through walls) A little bigger on the inside

       (see you later space cowboy, you can't take the sky from me)


_______________________________________________

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


AndyT (lordpixel - the cat who walks through walls) A little bigger on the inside

	(see you later space cowboy, you can't take the sky from me)


_______________________________________________

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


References: 
 >Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button? (From: Andrew Thompson <email@hidden>)
 >Re: Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button? (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: interface builder "read class files"
  • Next by Date: Re: Problem with date and time columns both bound to the same date attribute
  • Previous by thread: Re: Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button?
  • Next by thread: Re: Cocoa-dev Digest, Vol 4, Issue 1333
  • Index(es):
    • Date
    • Thread