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: vinai <email@hidden>
- Date: Fri, 12 Jun 2009 11:25:13 -0700 (PDT)
Dave,
I'll give it a try and report back to the list if that is indeed what's going on.
Thanks for the tip.
cheers
vinai
--- On Fri, 6/12/09, Dave Fernandes <email@hidden> wrote:
> 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.
_______________________________________________
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