Re: IKImageBrowserView managing the number of columns manually
Re: IKImageBrowserView managing the number of columns manually
- Subject: Re: IKImageBrowserView managing the number of columns manually
- From: Thomas Goossens <email@hidden>
- Date: Mon, 21 Dec 2009 10:53:44 +0100
Hi Nicolas,
On Dec 20, 2009, at 12:21 PM, Nicolas Berloquin wrote:
> Hi !
>
> I'm using an IKImageBrowserView to show a series of image captures
> and it works really well. I would like to be able to manage the number
> of images shown in a row in a precise way, and I'd like to know if there
> is any "public" way to do this ?
> The zoom variable is nice, but I don't like having to rely on calculations
> from the view size, and zoom value just to guess how many images will
> be shown...
> Is there something I missed ?
> Oh, and I'd also like to be able to determine the height (or widths) of
> cells...
> Right now cells are square, but my capture are have a 4/3 ratio, which
> leaves
> a lot of empty space between rows...
> Should I hack into the hidden variables in order to do that ?
With "setCellSize:" you should be able to control the number of cell per row more easily.
> And one more thing :)
> I tried saving the browserview as a jpeg. After searching the net I found
> out that
> it was using opengl to render. Could someone please point me to an easy
> way to save the whole view (if bigger than what's shown on screen) to a file
> ?
Saving the whole view will be difficult because it's representation doesn't really exist. I mean the images not on the screen are probably not loaded,
the layout is not computed and the backbuffer that stores the rendering is allocated only for the visible area of the view.
So if you want to create an image of everything you would probably have to iterate, scroll the view several times, do several snapshot of the view each time and to tile the images yourself (and also do all that in a separate offscreen window).
>
> thanks for any help ! :)
> (I'm starting to think that I should rather use the NSCollectionView if I
> want more
> handles into what is done, am I right ?)
The snapshot part will be probably easier with a NSCollectionView yes.
-- Thomas
_______________________________________________
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