• 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
NSImageCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageCell


  • Subject: NSImageCell
  • From: Lukasz Kuczborski <email@hidden>
  • Date: Tue, 26 Feb 2002 15:35:01 +0100

I want to display icon of file in NSTableView column...I have implemented
methods like iconForFile: ...and these (in class linked to dataSource of my
NSTableView):

- (void)setIconCell:(NSImage *)s
{
[s retain];
[iconCell release];
[iconCell setObjectValue:s];
[iconCell setImageAlignment:NSImageAlignCenter];
[iconCell setImageScaling:NSScaleProportionally];
[iconCell setImageFrameStyle:NSImageFramePhoto];
}

- (NSImageCell *)iconCell;
{
return iconCell;
}

But still...i can't get icons displayed in my Table...hmmm...what's wrong?
(I know it's not the case of releasing iconCell before setting it's object
value to "s"...i checked...this seems to be good...it's a mechanism like
"retain, release, and then pass retained value" method - thanks for your
book Aaron! ;P)

Please give me any suggestions of what is (or may be) wrong...i'm getting
angry i can't do such a simple thing! ;)
TIA!

Lukasz
_______________________________________________
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:
    • Re: NSImageCell continued...
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: text-to-speech problems, or is it just me?
  • Next by Date: Project Builder Template for menu extra?
  • Previous by thread: Re: problem with sheet contextInfo
  • Next by thread: Re: NSImageCell continued...
  • Index(es):
    • Date
    • Thread