Re: view drawing differences between Tiger and Leopard ?
Re: view drawing differences between Tiger and Leopard ?
- Subject: Re: view drawing differences between Tiger and Leopard ?
- From: Dave Fernandes <email@hidden>
- Date: Fri, 12 Jun 2009 11:24:54 -0400
This was a problem with NSImageView on Tiger. My workaround is to call
[imageView setImage:nil] and then [imageView setImage:myImage]. This
will cause a flicker, but your image will be redrawn. Not sure if
anyone else has a better workaround.
Dave
On Jun 12, 2009, at 7:32 AM, vinai wrote:
Hi Folks,
In my application, I am reading some data from a file on disk,
processing it, and sending that computed array through the
NSImageRepresentation -> NSImage -> NSImageView -> NSWindow chain
for viewing. After the data is processed, I call
[myView setNeedsDisplay: YES];
[myView displayIfNeeded];
to keep the displayed data concurrent with the stage of processing.
The app works as advertised on Leopard. Everything draws on cue, and
controls on a panel to manipulate the processing done to the data
before it is drawn to the content view work as I programmed them
to. However, when I try to do this on Tiger, the final data view is
not drawn or updated. I've managed to trigger a draw or update a
couple of times by maximizing the content window. However, that
doesn't consistently work. Dragging the corner of the window to
resize it and the view doesn't seem to work at all.
Any ideas what I can look for to track down the differences in view
drawing between 10.4 and 10.5 ? I'm using XCode 3.1.2 on 10.5 (I
think that's the same on my 10.4 machine, but I don't have access to
that right now to confirm) and both systems are Intel Core 2
machines, with all of the system updates applied.
Thanks everyone.
cheers
vinai
_______________________________________________
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
_______________________________________________
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