Re: "Live" image preview, huge memory usage...
Re: "Live" image preview, huge memory usage...
- Subject: Re: "Live" image preview, huge memory usage...
- From: Rob Keniger <email@hidden>
- Date: Wed, 3 Dec 2008 16:33:43 +1000
On 03/12/2008, at 1:53 PM, Jean-Nicolas Jolivet wrote:
since I already have a bitmapImageRep I figured displaying its data
in an NSImaveView was probably not a big loss in terms of
performance... I wonder if drawing directly would be worth it in my
case... and most importantly, if it would help solve my huge memory
problem (perhaps drawing directly instead of storing the preview in
an imageRep would help on the memory usage though so you might have
a point!)
I'd definitely try drawing directly, in my experience NSImageView does
quite a few funky things (probably for caching/performance reasons)
and generally if you're changing the image a lot it's best to just
draw directly in your own custom view.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden