• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Use new thread APIs (gdiff, 513091e)

Created 9/28/2007, updated 3/5/2024
  • snippets

Replace use of the NSThread detachNewThreadSelector:toTarget:withObject: API with the new NSObject performSelectorInBackground:withObject: API. This is a readability improvement which more clearly expresses the intention behind the creation of the new thread.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Remove private API support code (WOTest, 2e0037d)
Add Doxygen target (gdiff, e0d0150) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).