• 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
updating NSView on separate thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

updating NSView on separate thread


  • Subject: updating NSView on separate thread
  • From: email@hidden
  • Date: Sun, 31 Jan 2010 16:19:25 -0800

I have overlaid a transparent window over my NSDocument's main window. My intent is to draw textual notifications to it, such as "Processing...", "20 things selected...". The idea is partially experimental, etc. I thought it would be neat to display a spinning icon in the a subclassed content view of the overlay window when the program is doing something lengthy like saving, exporting pdfs, etc. A created a new thread that would run for the duration of an operation. This thread would call drawrect which would draw my spinning icon.  I create the new thread before a length operation. I assume that the lengthy operation would occur on the main thread while the drawing operation happens on the secondary thread. Utlimately my drawrect method doesn't get called in the secondary thread. Am I going about this all wrong?

patrick
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: updating NSView on separate thread
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: SetFrontProcessWithOptions and NSPanel
  • Next by Date: Re: updating NSView on separate thread
  • Previous by thread: SetFrontProcessWithOptions and NSPanel
  • Next by thread: Re: updating NSView on separate thread
  • Index(es):
    • Date
    • Thread