displaying images in a NsMatrix
displaying images in a NsMatrix
- Subject: displaying images in a NsMatrix
- From: Francesca <email@hidden>
- Date: Thu, 29 Dec 2005 16:33:33 +0100
Hallo.
I need to display thumbnails like iPhoto.
I've created a NSMatrix, but I have a problem.
I want to change the number of cell in rows when the window is resized.
So, if my cell is 100px and the width of the window is 600, even rows
has 6 images.
If the window is 800 the cells in a row are 8.
I don't know if there is a method,
I have thought this:
1. I set a size for my cells, for example 100px
2. I get the size of my window (for example 600px)
3. widhWindow : widthCell = 6
4 I create a rows with 6 cells
5. I add rows to show all my images
6. on the last rows if some cells are empy I delete them
(so if I have 15 record, I create the first row with 6 cells, the
second with 6 cells, the third with 6 cells, then I delete the last 3
cells???? or there are another way to do this????).
What do you think of my idea???
Is it correct???
Or I have to use other method???
iPhoto which way use???
thanks
francesca
_______________________________________________
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