Re: NSImage in NSTableView
Re: NSImage in NSTableView
- Subject: Re: NSImage in NSTableView
- From: j o a r <email@hidden>
- Date: Sat, 27 Mar 2004 11:19:15 +0100
Instead of using:
[NSImage imageNamed: @"SomeImageName"];
try using:
[[[NSImage alloc] initWithContentsOfFile:
@"/the/path/to/your/image.tiff"] autorelease];
...and supply the path to the image file you're interested in loading.
j o a r
On 2004-03-27, at 11.09, Matt Jaffa wrote:
>
I am trying to display a NSImage in a NSTableView,
>
>
I downloaded an example that helped me to get it to work, but that
>
works only with
>
an icon that is already bundled up with the APP.
>
>
I am trying to return one that is found on the HD.
>
>
I am doing this within my TableViews data source, but it expects to
>
receive a NSString even though
>
it is an image.
>
>
[NSImage imageNamed:@"NSApplication"] returns the apps icon, in the
>
for of a NSString
>
to be displayed in the NSImageCell.
>
>
I would like to have a similar behavior, but be able to display icons
>
from this folder:
>
/Library/User Pictures/
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.