Hi again!
I think I understand what you mean, but still not knowing how to make it works... I've tried with the following code:
************************************************** ***
UIImage* img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"sangnormal01" ofType:@"png"]];
texMoscaNormal[0][0] = [[Image alloc] initWithImage:img];
[img release];
************************************************** ***
So a UIImage* is created, the UIImage is allocated
inside it's own method (so no additional alloc is called), then the Image class is initialized with a UIImage, and after this the UIImage* is released... I think this is the theory, more or less, but when I try to run the app...
----------------------------------------------------------------------
[1541:207] *** -[UIImage release]: message sent to deallocated instance 0x3b37a20
----------------------------------------------------------------------
Seems that log says UIImage is never allocated, so releasing is not possible... it's losing sense as time passes!
Thanks Jack!