• 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: Thread Safety and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread Safety and Cocoa


  • Subject: Re: Thread Safety and Cocoa
  • From: Ali Ozer <email@hidden>
  • Date: Wed, 22 Jan 2003 22:51:37 -0800

NSImage is one big problem. Since NSImage is so slow, I'm trying to
render the image in a thread by using

NSImage* image = [[[NSImage alloc] initWithContentsOfFile:[[param
desc] path]] autorelease];

[image lockFocus];
[image unlockFocus];

A workaround which should allow NSImages to be cached in other threads is to call [image setCachedSeparately:YES].
Ali
_______________________________________________
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: 
 >Thread Safety and Cocoa (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Re: localized strings from another bundle?
  • Next by Date: NSButtonCell & tableView (s)
  • Previous by thread: Thread Safety and Cocoa
  • Next by thread: Enabling the "Paste" menu item
  • Index(es):
    • Date
    • Thread