Re: checkbox delegate
Re: checkbox delegate
- Subject: Re: checkbox delegate
- From: Andy Lee <email@hidden>
- Date: Wed, 21 Feb 2007 17:39:53 -0500
Just so you know, NSButtons do have delegate methods -- they inherit
them from NSControl. When you find yourself searching for methods
that you intuitively think should be there, try searching superclasses.
--Andy
On Feb 21, 2007, at 4:07 PM, Jaime Magiera wrote:
On Feb 21, 2007, at 3:49 PM, Sean McBride wrote:
If you just want to know when your checkbox is clicked, you can
use the
target/action mechanism:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_5.html>
Ahhhh, OK, I was thinking that delegates might have some advantages
over target/action. However, I guess there really isn't much state
change in a checkbox. It's either on/off and that's about all. It
looks like the mouseentered/left from the super classes would
handle any need for user feedback pre/post click.
Cool, thanks man!
Jaime Magiera
Sensory Research Network
http://www.sensoryresearch.net
_______________________________________________
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
_______________________________________________
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