• 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: "Jonathan E. Jackel" <email@hidden>
  • Date: Wed, 5 Jun 2002 09:56:16 -0400

Yes, that's really what I meant -- that cross-thread drawing requires a lot
of care, while not strictly verboten. As the docs say, "It is commonly
believed that 'the Foundation is thread-safe and the Application Kit is
not.' However, this statement is a gross generalization and can be
misleading. Each has thread-safe and thread-unsafe portions."

http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/Multithreading/Tasks/appkit.html#BAJJDIHH

Jonathan Jackel

> 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.
> > Jonathan
> >
> >> > I'm redrawing a view from a callback in a thread and crashing.
> >> > I'm not sure why I'm crashing.
>
> While I agree that the original poster's problem is likely due to
> incautious cross-thread drawing,
> it is NOT true that it is verboten to "touch the GUI from a thread other
> than the main thread".
_______________________________________________
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: Cameron Hayne <email@hidden>)

  • Prev by Date: Thread safe programming
  • Next by Date: open Recent document
  • Previous by thread: Re: drawing NOW in a callback, boom!
  • Next by thread: Re: drawing NOW in a callback, boom!
  • Index(es):
    • Date
    • Thread