Re: Bidirectional, Manual Binding in custom control
Re: Bidirectional, Manual Binding in custom control
- Subject: Re: Bidirectional, Manual Binding in custom control
- From: Quincey Morris <email@hidden>
- Date: Thu, 28 Jun 2012 11:04:58 -0700
On Jun 28, 2012, at 10:49 , Jerry Krinock wrote:
> OK, but effectively this means that I simply factor this -changeRating: action method out of my -mouseDown: method. Only -mouseDown: will invoke -changeRating: at this time.
>
> I don't think I've ever seen a control class implementing an action method, but I suppose that factoring as you suggest is a good practice to avoid bugs being introduced during future changes.
You're right, it makes no sense to use an action method. I was mistakenly eliding the distinction between the control and the view/controller containing/managing the control. I'd keep the factoring, though, for the reason you state.
OTOH, I'm not sure now why your control needs a 'rating' ivar. Doesn't this just duplicate the value of the control's objectValue, and create extra housekeeping?
_______________________________________________
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