• 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
Synchronizing NSWindow updates with threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Synchronizing NSWindow updates with threads


  • Subject: Synchronizing NSWindow updates with threads
  • From: "McLaughlin, Michael P." <email@hidden>
  • Date: Tue, 25 Aug 2009 14:50:51 -0400
  • Acceptlanguage: en-US
  • Thread-topic: Synchronizing NSWindow updates with threads

I have an NSOperation app (simulation) executing one timestep at a time.
The threads are working fairly well but the running output is supposed to be
drawn as a color-coded map every 10 timesteps.

It seems that a window update is a low priority task because my threads are
running and continually sending new data back to the main thread but the
window is not updating (being redrawn) at the proper times (if at all).
viewsNeedDisplay(), etc. does not suffice.

Could someone tell me the proper way to

1) force an immediate (synchronous) window redraw, or
2) set the redraw priority high enough so that it takes precedence over my
threads, or
3) some other better solution?

Thanks.

--
Mike McLaughlin

_______________________________________________

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: Synchronizing NSWindow updates with threads
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: kTISPropertyUnicodeKeyLayoutData Returns NULL
  • Next by Date: Binding exception on Tiger
  • Previous by thread: kTISPropertyUnicodeKeyLayoutData Returns NULL
  • Next by thread: Re: Synchronizing NSWindow updates with threads
  • Index(es):
    • Date
    • Thread