Re: Adding graphical components at run-time (Newbie)
Re: Adding graphical components at run-time (Newbie)
- Subject: Re: Adding graphical components at run-time (Newbie)
- From: David Remahl <email@hidden>
- Date: Sun, 26 Aug 2001 00:06:03 +0200
You should look into NSMatrix and matrix cells. Read in the IB manual to
find out how to init them in IB.
/ david
Wondering if anyone can help me out here. I'd like to have a window
that displays thumbnails of an arbitrary number of images. I will know
the size that I want the images displayed at (they will need to be
resized from the originals, though). I'm hoping to lay the images out
in a grid that's as wide and tall as the window (possibly allowing
scrolling downward if needed).
My question is this: How can I create a grid layout based on what the
window size is at runtime, and then add images to that layout at
runtime? I could probably do this statically in IB, but I don't know
how to code this dynamically.
Thanks!
Lane Schwartz