NSImageCell
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.