Re: Carousel - like control for Mac OS

2011-12-21 Thread vincent habchi
Nick, I cannot elaborate much on this and give you code (not because it is somehow confidential, but just because it is a general idea I don’t have implemented, though I’m familiar with CAScrollLayers). The idea is thus: 1. Draw a normal NSView that you back with a CAScrollLayer. Give it the ri

Re: Carousel - like control for Mac OS

2011-12-21 Thread Olivier Palliere
HI Nick, In my app, I have two IKImageBrowserView subclasses (thumbnailsBrowser) that I populate with the pictures I need. It supports scrolling out of the box with the mouse or trackpad when needed. For one of my subclass, I resize the popover because it can only have up to 5 pictures in it, s

Re: Carousel - like control for Mac OS

2011-12-21 Thread Nick
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

Re: Carousel - like control for Mac OS

2011-12-21 Thread Vincent Habchi
> 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 specifi

Re: Carousel - like control for Mac OS

2011-12-21 Thread Nick
Coverflow seems to be even more difficult to implement than just a simple smoothly scrollable strip with clickable items. Coverflow can be implemented using this iCarousel, but, again, with non-clickable items. And then, I do not have much space on the window to put this coverflow (while a strip

Re: Carousel - like control for Mac OS

2011-12-21 Thread Stephen J. Butler
On Tue, Dec 20, 2011 at 3:00 PM, Nick wrote: > Hello > I am wondering, if a component exists similar to this > http://www.ajaxdaddy.com/demo-jquery-carousel.html > for Mac OS. > > Basically, what I need is just "next" and "previous" buttons (and > these images smoothly scrolled one image per "next

Re: Carousel - like control for Mac OS

2011-12-21 Thread Nick
Unfortunately, on Mac OS this control does not support click on items detection, which makes it useless on Macs. from README.md: "On Mac OS there is no easy way to detect clicks on carousel items currently. You cannot just supply an NSButton as or inside your item view because the transforms appli

Re: Carousel - like control for Mac OS

2011-12-20 Thread Nick
Thanks! 2011/12/20 Tom Hohensee : > Have a look at iCarousel.  Has a port for iOS as well as Mac OS. > > Tom > > On Dec 20, 2011, at 3:00 PM, Nick wrote: > > Hello > I am wondering, if a component exists similar to this > http://www.ajaxdaddy.com/demo-jquery-carousel.html > for Mac OS. > > Basical

Re: Carousel - like control for Mac OS

2011-12-20 Thread Tom Hohensee
Have a look at iCarousel. Has a port for iOS as well as Mac OS. This can be done with ImageKit in IB as well. Just disable the scroll view and setup forward and back buttons that call the image index (nextIndex, etc). See imageKit docs. Tom On Dec 20, 2011, at 3:00 PM, Nick wrote: > Hell

Carousel - like control for Mac OS

2011-12-20 Thread Nick
Hello I am wondering, if a component exists similar to this http://www.ajaxdaddy.com/demo-jquery-carousel.html for Mac OS. Basically, what I need is just "next" and "previous" buttons (and these images smoothly scrolled one image per "next" or "prev" button click). At the moment I am trying to im