• 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: Paul Cezanne <email@hidden>
  • Date: Thu, 6 Jun 2002 06:41:10 -0400

At 11:30 AM -0700 6/5/02, Aram Greenman wrote:
>On Wednesday, June 5, 2002, at 09:49 AM, Paul Cezanne wrote:
>
>>I'm the original poster in this thread and there has been a lot of talk about how safe or unsafe threaded modifications to the UI are.
>>
>>I believe I _have_ followed the guidelines, all my drawing calls are via NSBezierPath, which is allegedly safe.
>>
>
>Did you try putting your code in an NSThread? I was able to easily recreate your problem in a pthread but not in an NSThread, just using the code from your original post. Also, it seems to crash (signal 10 or 11) on the -display call, not the drawing calls, so I don't think that's your problem.

that's not really an option since the pthreaded calls is from a cross platform library and we want to keep it that way. I'm getting enough resistance to Cocoa at work that I really don't want to fight a battle I'm not sure I want to win!

I do have the answer, basically I took the display call out and posted an NSEvent which I pickup in the main thread, the problem stops. I'll post a full solution, later today I hope.
_______________________________________________
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: Aram Greenman <email@hidden>)

  • Prev by Date: NSApp's currentEvent
  • Next by Date: (New) Loading a custom view and its subviews from a nib
  • Previous by thread: Re: drawing NOW in a callback, boom!
  • Next by thread: Re: drawing NOW in a callback, boom!
  • Index(es):
    • Date
    • Thread