NSImage setName
NSImage setName
- Subject: NSImage setName
- From: "Colin O'Connor" <email@hidden>
- Date: Mon, 22 Nov 2004 21:10:10 -0500
I'm creating an image and then setting the name of the image, but it seems
to not be working. Here is the code I'm using:
NSImage *image = [[NSImage alloc] initWithContentsOfFile:PATH_TO_IMAGE];
[image setName:@"Shadowfist_back"];
NSLog(@"Name: %@",[image name]);
This NSLog prints "Name: (null)". The image shows up in my window when I add
it to an NSImageView.
What am I doing wrong here?
Thanks,
Colin
_______________________________________________
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