• 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
Re: Faster menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faster menu


  • Subject: Re: Faster menu
  • From: email@hidden
  • Date: Fri, 28 Jun 2002 08:37:05 -0500

Well, the only idea I have is in the main window controller's
windowDidLoad routine (or whatever equivilent you hav ein your program) to create a NSThread
that loads the Menu in "the background" (for all practical purposes) ..

There ARE some issues to be resolved.. namely.. what IF the user DOES try the menu option before
it is loaded.. you may need something like a semaphore that the thread posts when it has finished loading
the menu items .. and have some menu delegate (or something) check that semaphore before allowing
the user to select that menu (i.e. keep the menu item disabled until loaded.. then when the thread has
done loading it.. either it can enable it (a bit risky) or post a notification that the main thread accepts
and have it enable it.. something along these lines anyway..

Good luck

-sjm

On Thursday, June 27, 2002, at 08:16 AM, Benoit Widemann wrote:

My application has a drop-down menu whose contents is under user control, and in some cases may become overpopulated, with, for instance, 100+ items. Each item may have an icon.

Problem: the first time its title is clicked, it takes several long seconds before the menu actually drops down. Afterwards, the delay is much shorter, I guess the bits are bufferized somewhere.

What I would like is to "prefetch" the bits while the application is initializing. There is a good chance that the user will not click the menu for minutes after launching the app, so I have plenty of time to do the job.

Any idea how to do that?

Benoit Widemann
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Faster menu (From: Benoit Widemann <email@hidden>)

  • Prev by Date: Re: Communication between classes
  • Next by Date: Re: The Small Developer
  • Previous by thread: Re: Faster menu
  • Next by thread: A text view finishes getting images in HTML
  • Index(es):
    • Date
    • Thread