• 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
Re: NSImage -isValid not always right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage -isValid not always right?


  • Subject: Re: NSImage -isValid not always right?
  • From: "Peesapaty Ramesh" <email@hidden>
  • Date: Fri, 12 Apr 2002 22:26:41 +0530

Hi,
i am trying to display a image in tableView .
the code is as follows.


NSImageCell *myImageCell;
NSTableColumn *col = [folderList
tableColumnWithIdentifier:@"folder"];
NSImage *myImage = [[NSImage alloc]
initWithContentsOfFile:@"folder.gif"];

if ([myImage isValid]){
NSLog(@"Image is valid");
}
if ([myImage isKindOfClass:[NSImage class]]){
NSLog(@"YES");
}
myImageCell = [[NSImageCell alloc] init];
[myImageCell setImage:myImage];
[col setDataCell:myImageCell];

when it is setting value in the tablecolumn it is giving following
error.
"NSImageCell's object value must be an NSImage."
am i missing anything.

thanks in advance.
Ramesh
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Problems with image cell in table view (was: Re: NSImage -isValid not always right?)
      • From: j o a r <email@hidden>
  • Prev by Date: Re: ever felt like a complete BOZO??
  • Next by Date: Re: ever felt like a complete BOZO??
  • Previous by thread: NSImage -isValid not always right?
  • Next by thread: Problems with image cell in table view (was: Re: NSImage -isValid not always right?)
  • Index(es):
    • Date
    • Thread