Re: IKImageView setImage only works once.
Re: IKImageView setImage only works once.
- Subject: Re: IKImageView setImage only works once.
- From: "James Trankelson" <email@hidden>
- Date: Thu, 15 Jan 2009 04:07:22 +0100
Ha!
I actually tried both of your suggestions, but without avail.
It turns out that calling [setImage: imageProperties:] is happiest to
be called from the main thread. Calling it by using
performSelectorOnMainThread: works.
jt
On Thu, Jan 15, 2009 at 2:51 AM, Graham Cox <email@hidden> wrote:
>
> On 15 Jan 2009, at 12:22 pm, James Trankelson wrote:
>
>> Well, judging from how often ImageKit questions appear to be answered
>> here, my expectations aren't high, but here goes anyway...
>>
>> I'm using an IKImageView and calling setImage to set its contents.
>>
>> The problem is that setImage only works the first time. Subsequent
>> calls don't update the image. The first always remains.
>>
>> Any ideas?
>
>
> IKImageView doesn't implement -setImage:
>
> It has -setImage:imageProperties: and -setImageWithURL:
>
> Did you mean one of these?
>
> You may need to call -setNeedsDisplay:YES also after setting the image (the
> docs are silent on this point but other ImageKit classes need this call for
> some operations - they don't necessarily flag the needed update internally).
>
> any help?
>
> --Graham
>
>
>
_______________________________________________
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