• 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: drawing NOW in a callback, boom!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing NOW in a callback, boom!


  • Subject: Re: drawing NOW in a callback, boom!
  • From: Marcel Weiher <email@hidden>
  • Date: Wed, 5 Jun 2002 09:44:58 +0200

On Wednesday, June 5, 2002, at 03:15 Uhr, Paul Cezanne wrote:

At 6:44 PM -0400 6/4/02, Jonathan E. Jackel wrote:
You're not supposed to touch the GUI from a thread other than the main
thread. This has been discussed ad nauseum.

Really?

http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
Multithreading/Tasks/appkit.html

suggests otherwise, explicitly stating that NSBezierPath was thread safe.

Now, just to make life harder, I'm not using NSThread, I'm using pthreads (the threaded part of my application, actually a whole lot of it, is cross platform, and no, we have looked into GnuStep yet).

1. You have to spawn at least one NSThread in order to get thread-safety of various components.
2. NSApplication has a somewhat suggestively named "detachDrawingThread..." method

Marcel


--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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: 
 >RE: drawing NOW in a callback, boom! (From: Paul Cezanne <email@hidden>)

  • Prev by Date: Re: Sound Recording using Cocoa
  • Next by Date: Re: Color comparison
  • Previous by thread: Re: drawing NOW in a callback, boom!
  • Next by thread: Re: drawing NOW in a callback, boom!
  • Index(es):
    • Date
    • Thread