• 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: NSTextField sendActionOn:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField sendActionOn:


  • Subject: Re: NSTextField sendActionOn:
  • From: Graham Cox <email@hidden>
  • Date: Sun, 17 Jan 2010 22:12:46 +1100

On 17/01/2010, at 3:56 PM, Brad Stone wrote:

> I was able to capture the mouseDown event in the field but only in a subclass which is causing me problems elsewhere.


Indeed, a mouse click is not the only reason a field might become focused - the user could tab into it as well.

Overriding -becomeFirstResponder should do it.

Taking a step back though, WHY do you need to get notified here? What are you trying to do? There might be a better way.

--Graham




_______________________________________________

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

  • Follow-Ups:
    • Re: NSTextField sendActionOn:
      • From: Brad Stone <email@hidden>
References: 
 >NSTextField sendActionOn: (From: Brad Stone <email@hidden>)
 >Re: NSTextField sendActionOn: (From: Matthew Lindfield Seager <email@hidden>)
 >Re: NSTextField sendActionOn: (From: Brad Stone <email@hidden>)

  • Prev by Date: Re: NSTextField sendActionOn:
  • Next by Date: Re: [iphone] Release Navigation View Controller Question
  • Previous by thread: Re: NSTextField sendActionOn:
  • Next by thread: Re: NSTextField sendActionOn:
  • Index(es):
    • Date
    • Thread