Re: NSImage imageNamed
Re: NSImage imageNamed
- Subject: Re: NSImage imageNamed
- From: Kyle Mandli <email@hidden>
- Date: Sun, 8 Jul 2001 11:42:12 -0500
I use this function a lot and I don't seem to have any problems with it
although make sure you are retaining it correctly. You will need to do
something to this affect...
NSImage *myImage = [[NSImage imageNamed:@"image.jpg"] retain];
I usually create the instance in initWithFrame: and it seems to work
there.
Kyle