problem NsMatrix and image
problem NsMatrix and image
- Subject: problem NsMatrix and image
- From: Francesca <email@hidden>
- Date: Thu, 13 Apr 2006 09:38:22 +0200
Hallo,
I have a NsMatrix of ImageCell, where I display thumbnails of images.
My matrix has an action on doubleclick to open the full size image in
a new window.
I set the image from a while cicle.
And It's all ok.
This is my code:
immagineDaFile=[[NSImage alloc] initWithContentsOfFile:(path3)];
[immagineDaFile setName: path3];
[cella setImageFrameStyle: NSImageFrameGrayBezel];
[cella setImage: immagineDaFile];
[matrixx putCell:cella atRow:riga column:colonna];
[matrixx sizeToCells];
[immagineDaFile release];
The problem is the name of my image.
For some image it works...
But not for all.
But the image and the cells are loaded in the same way from code...
I've read that the image are not release until the name is set to nil.
So I've set the name to nil at the end of my cicle.
In this way, in the log, all the image name are set in the right way.
But If I click on a image, obviously the name is nil.
So, what can I do to mantain image with name, without releasing, if I
have imageCell with only one name???
Sorry for my bad english, I hope you can understand.
Thanks
Francesca
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden