• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Loading images in an array while app is loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: drawing text on a path?
  • Next by Date: Adding design-time 'live' functionality to IB palette items
  • Previous by thread: Re: Sharing an NSTextView
  • Next by thread: Adding design-time 'live' functionality to IB palette items
  • Index(es):
    • Date
    • Thread