• 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
Question about NSResponder cancelOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about NSResponder cancelOperation


  • Subject: Question about NSResponder cancelOperation
  • From: Iain Delaney <email@hidden>
  • Date: Fri, 23 Feb 2007 22:43:35 -0500

Hello,
I've got a window with two NSTextFields on it. I want the user to be able to cancel editing in either of the text fields, but I need different behaviour depending on which field is active when the user hits Esc.

My controller class implements cancelOperation, so I'd like to determine which text field send the message by examining the sender argument. The problem is that the sender argument is nil, according to NSLog and gdb.

Does anyone know what's going on here?


Thanks,

Iain Delaney
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Question about NSResponder cancelOperation
      • From: email@hidden
  • Prev by Date: Re: NSTableView with LARGE dataset
  • Next by Date: Re: Question about NSResponder cancelOperation
  • Previous by thread: Re: NSTabView help
  • Next by thread: Re: Question about NSResponder cancelOperation
  • Index(es):
    • Date
    • Thread