Re: Implementing a scrollable icon-table
Re: Implementing a scrollable icon-table
- Subject: Re: Implementing a scrollable icon-table
- From: j o a r <email@hidden>
- Date: Tue, 20 Dec 2005 13:28:06 +0100
On 20 dec 2005, at 13.12, Dan Price wrote:
I need to implement a scrollable icon-table for my
graphics app. Each shader in the app is represented by
a 100x100 pixel preview icon. I want the icons for all
of the shaders present displayed in a grid utility
window so that they can be selected and used. The
window view must be scrollable in case there are too
many icons to fit. Can this be done with a standard
tableview?
The icon-selector seen at the top of XCode’s settings
window is the closest example I’ve seen.
Consider using an NSMatrix in a scroll view. You can set it up in IB:
1) Drag in an NSImageView
2) Alt+Drag one of the resize corners to create a NSMatrix of image
cells
3) Select "wrap in scroll view"
You can set up the matrix with nx1, nxn or 1xn dimensions as you like.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden