On Aug 15, 2012, at 8:24 PM, Jens Alfke <j...@mooseyard.com> wrote: >> The images are typically 25 MB Canon 7D raw image files that have >> been pre-alloc'ed and initWithContentsOfFile: > > NSImage doesn't actually load the image pixels until it needs to. Merely > initializing an instance won't do it.
That matches what I'm seeing. The code didn't originally alloc and init the image until just prior to dropping it in the image well. I tried a pre alloc/init on the off chance it would make things faster. Nope. > That said, NSImage has changed a lot over time (especially its caching) and > I'm not sure what the best way is to preload an image these days. For this application the camera preview jpg inside of the raw image would be of good enough quality. I'm looking at what it would take to extract that. Marc _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com