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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com