Re: Custom control with 4 vertical sliders
Re: Custom control with 4 vertical sliders
- Subject: Re: Custom control with 4 vertical sliders
- From: Gordon Apple <email@hidden>
- Date: Sat, 16 Feb 2013 12:18:38 -0600
- Thread-topic: Custom control with 4 vertical sliders
DonĀ¹t use NSMatrix. Use NSCollectionView. I have a popover containing a
collection view with sliders and all kinds of other stuff. Depending on
what you are doing, you may need to make the thing create a new view for
every collection class element instead of just replicating the prototype.
(I have individual QTmovie thumbnails playing in mine.) You will need to
subclass the collection view to do this. However, from your description,
that should not be necessary. The standard prototype view should work
without subclassing the collection view.
On 2/16/13 4:00 AM, "email@hidden"
<email@hidden> wrote:
> I sometimes find that trying to subclass existing classes such as NSCell is
> more trouble that it's worth, unless you really need your custom cell to be
> used anywhere a cell can be used, e.g. buttons, matrices, list rows, etc. If
> you just want a particular custom control that doesn't need that degree of
> reusability, subclassing NSView or NSControl is always a lot easier. In this
> case, if NSSlider isn't suitable, just make a custom view for your custom
> slider, then add it four times to another custom view that handles the "set"
> of sliders as needed.
_______________________________________________
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