Re: Image not updated
Re: Image not updated
- Subject: Re: Image not updated
- From: Robert Cerny <email@hidden>
- Date: Sat, 20 Jan 2007 20:33:25 +0100
On 20.1.2007, at 20:18, I. Savant wrote:
It's difficult to make sense of the problem as you're describing
it ...
It looks well from my point of view and when I save the image
using [[myImageFile TIFFRepresentation] writeToFile.... I get the
correct image.
Can you clarify this? Do you see the image drawn correctly (with
your string) on the screen prior to writing? Also, whether you see
it in the GUI first or not, when you say "I get the correct image"
do you mean the image (with your string on it) you save displays fine?
I'm writing a command line tool, so I don't have gui. I get the
correct image means, that when I save the image which I changed using
the described method I get what I expect - image with text over it.
But it's not what I want... I need just change icon.
However, it looks like the contents in memory doesn't contain the
string. I tried to use [myImageFile recache] to update it but no
way. I'm using IconFamily to draw a thumbnail and the icon I get
is empty.
This statement is ambiguous as well. What do you mean 'contents
of memory'? Do you mean you viewed your attributed string in the
debugger and it was empty or nil?
My idea (maybe wrong) was that IconFamily uses cached version of the
image (without my string). I get an empty icon (not generic, but
empty) after save. When I remove my code which I described in the
first email, the file gets _correct_ icon - thumbnail of the image.
Robert
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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