> 2009/7/1 Trygve Inda <cocoa...@xericdesign.com>: >> So is this legal in a secondary thread? >> >> NSImage* theImage = [[NSImage alloc] initWithContentsOfFile:someImagePath]; >> [imageView setImage:theImage]; >> [theImage release]; > > No.
> I have no idea how this squares with "generally thread-safe", but when > in doubt, assume it's not. > > Since -[NSImage setImage:] is nowhere documented to be thread safe > that I can see, you must assume that it's not. Thanks. I guess I drew too much into "generally thread-safe"... I guess rocks generally float at 1 Infinite Loop, except when they don't. :-) Trygve _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com