• 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: Re: Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Threads


  • Subject: Re: Re: Threads
  • From: Alf Watt <email@hidden>
  • Date: Sun, 24 Jul 2005 20:21:27 -0700


Ok. performSelectorOnMainThread: did the trick. So, now, for educational purpose, what is the intended use of this pair of methods then ? (lockFocusIfCanDraw, and unlockFocus) ?


-- Laurent

It's for NSView subclasses which want to perform drawing operations in a separate thread. You might do this when drawing to an offscreen window or when monitoring the output of secondary threads. There is a paragraph about it in the Cocoa Thread Safety page, search for 'NSView':


http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/articles/CocoaSafety.html

Best,
Alf
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: scriptSuite error in app that was fine in Panther
  • Next by Date: Re: Problem with japanese systems [Solved?]
  • Previous by thread: Re: scriptSuite error in app that was fine in Panther
  • Next by thread: CIFilter not releasing GL_FRAGMENT_PROGRAM_ARB
  • Index(es):
    • Date
    • Thread