> On Sep 21, 2013, at 9:59 AM, Paul Scott <psc...@skycoast.us> wrote:

> 
> Off the top of my head, you could put a custom UIButton with background arrow 
> image  on top of your other views and have it handle touch events to initiate 
> scrolling.

Livio said NS, not UI, implying this is for the Mac.

>> On Sep 21, 2013, at 9:46 AM, Livio Isaia <lis...@tiscalinet.it> wrote:
>> 
>> Hi everybody.
>> 
>> I need to display an horizontal list of pictures with 2 arrow  controls on  
>> left and right sides (you can see many of these on the web).
>> Is there a predefined NSView for this?
>> 
>> I tried with a NSCollection view inside a custom NSView of my own, but can't 
>> make the NSCollection scroll horizontally.
>> Of course it scrolls if I use a containing NSScrollView, but I need to 
>> scroll with the 2 side controls, not with the traditional scrollbars.

Assuming this is indeed on the Mac, you will indeed want to put the collection 
view inside a scroll view. In fact, this is how it should have been set up when 
you dragged it out of the object library and dropped it in your nib.

NSScrollView has plenty of methods for scrolling it. Hide the scrollers and 
wire up some buttons.

--Kyle Sluder

_______________________________________________

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

Reply via email to