Loading images in an array while app is loading
Loading images in an array while app is loading
- Subject: Loading images in an array while app is loading
- From: Florian Soenens <email@hidden>
- Date: Wed, 29 Jan 2003 21:52:01 +0100
Hello all,
i have the following question:
I have an app with an NSMatrix. The matrix has a lot of imageCells.
There is an array with all the paths to the images loaded in the
awakeFromNib of my appController.
Then i do a loop in the awakeFromNib as so:
for(i = 0;i < [theArray count];i++)
{
// supose theRow and theColumn have been calculated
[[theMatrix cellAtRow:theRow column:theColumn] setImage:
[[NSWorkspace sharedWorkspace] iconForFile:[a
objectAtIndex:i]]];
}
When the array is huge, (let's say 1000+ paths), i takes a lot of time
for my app to start up.
Is it possible to start the app, set the first 50 images or so, and
then, in the background load the rest of them?
Thanks in advance,
Florian Soenens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.