Re: Carousel - like control for Mac OS
Re: Carousel - like control for Mac OS
- Subject: Re: Carousel - like control for Mac OS
- From: Nick <email@hidden>
- Date: Wed, 21 Dec 2011 11:22:14 +0200
I am not sure how to do this.
Currently, I have an NSScrollView (whose document view has all the
item views), with hidden scroll bars, and buttons "next" and
"previous". When "next" and "prev" are clicked, I -scrollToPoint
NSScrollView's content view a bit to the right or to the left.
It seems to be working as I need, except that it doesn't scroll
smoothly (I guess I need to use somehow). I suppose I need to attach a
core animation layer to NSScrollView? Or use somehow CAScrollView?
I've never worked with Core Animation before, except using animator
"proxy", however
[[[[myscrollview] contentView] animator] scrollToPoint:nextPoint];
doesn't add any animation..
What would be the quickest way to make it work?
2011/12/21 Vincent Habchi <email@hidden>:
>> And then, I do not have much space on the window to put this
>> coverflow (while a strip can be small and still look good), plus a
>> strip can display more than 1 item at once, and the user can click on
>> any of these items without too much of scrolling).
>
> Why don’t you use CALayers (more specifically a CATileLayer and sublayers containing your images)?
>
> Vincent
_______________________________________________
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