• 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: Multi-threaded help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-threaded help


  • Subject: Re: Multi-threaded help
  • From: Andy Wiese <email@hidden>
  • Date: Thu, 8 Mar 2007 13:05:54 -0600

Yea...just get me started! ;-) I would love for someone to ask me _why_ I have to do this, who actually wants to hear me whine, but experience tells me that will kill the thread before I get any useful feeback.

It would be helpful to know if I am really looking at an idiosyncrasy of the old Carbon Threads, or if this is more general. If it is really specific to my weirdo situation, then maybe someone who knows what really happens inside of display could at least hazard a guess? (wishful thinking...)

Would I expect this not to happen in an NSThread? Better said... would -[NSView display] work as expected if called from an NSThread (other than main), given that there were no existing locks on focus or whatever held by another thread?

On Mar 8, 2007, at 12:57 PM, John Stiles wrote:

Really, a cooperative thread? As in, made by the old non-preemptive Carbon Thread Manager?
Wow... haven't heard of a lot of Cocoa apps using those ;)



On Mar 8, 2007, at 10:50 AM, Andy Wiese wrote:

Does anyone know why the -[NSView display] family of functions does nothing when called in a cooperative thread context?

lockFocusIfCanDraw and drawRect (and its ilk) work fine. I can make a crude hand-rolled display-like function work. Why can't I just call display?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40blizzard.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Multi-threaded help (From: Andy Wiese <email@hidden>)
 >Re: Multi-threaded help (From: John Stiles <email@hidden>)

  • Prev by Date: Crash in _NSTableRowHeightStorage
  • Next by Date: keycode to unicode in NSEvent
  • Previous by thread: Re: Multi-threaded help
  • Next by thread: call scrollRangeToVisible in multi-threads cause application dead lock
  • Index(es):
    • Date
    • Thread