• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSImage setName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSImage setName
      • From: Paolo Costabel <email@hidden>
  • Prev by Date: Re: NSTableView in code
  • Next by Date: Re: NSImage setName
  • Previous by thread: Re: NSTableView delegate not responding
  • Next by thread: Re: NSImage setName
  • Index(es):
    • Date
    • Thread