• 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: Bidirectional, Manual Binding in custom control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Bidirectional, Manual Binding in custom control
      • From: Jerry Krinock <email@hidden>
References: 
 >Re: Bidirectional, Manual Binding in custom control (From: Jerry Krinock <email@hidden>)
 >Re: Bidirectional, Manual Binding in custom control (From: Quincey Morris <email@hidden>)
 >Re: Bidirectional, Manual Binding in custom control (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Bidirectional, Manual Binding in custom control
  • Next by Date: Re: Transparent NSTextField
  • Previous by thread: Re: Bidirectional, Manual Binding in custom control
  • Next by thread: Re: Bidirectional, Manual Binding in custom control
  • Index(es):
    • Date
    • Thread