Hi,
I have a class with image property:
@interface MyClass
{
...
NSImage *image;
}
...
@end
in -(void) init: this image object is set like:
-(void) init
{
...
image = [[NSImage alloc] initWithData: imageData];
...
}
somewhere else in another method
On Apr 9, 2008, at 7:43 PM, Samvel wrote:
But these lines of code involves freeing memory and allocating new
object although it seems to be faster if data would be replaced
instead of recreating the whole object. Is it possible to do that
way: just to replace image contents with
It was a general thought. I am programming in Objective-C only for
about month and was wondering if there is any faster way to replace
image/string/etc. contents instead of reallocating object itself.
Samvel.
On Apr 9, 2008, at 9:58 PM, Bill Bumgarner wrote:
On Apr 9, 2008, at 7:43 PM,
On Apr 9, 2008, at 8:02 PM, Samvel wrote:
It was a general thought. I am programming in Objective-C only for
about month and was wondering if there is any faster way to replace
image/string/etc. contents instead of reallocating object itself.
Being concerned about performance is a good