Re: Thread Safety and Cocoa
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.