Re: Indicator image in a Table Column
Re: Indicator image in a Table Column
- Subject: Re: Indicator image in a Table Column
- From: email@hidden
- Date: Thu, 25 Oct 2001 21:16:11 -0400
No. I found the answer somewhere on the web.
Jorge Monteiro
JomoSoft LLC
On Thursday, October 25, 2001, at 05:55 PM, Alex Keresztes wrote:
Thanks very much.
Apparently it still works in 10.1
How did you figure this out? Private headers?
Alex
On Thursday, October 25, 2001, at 04:39 PM, email@hidden wrote:
Just use the following code:
--------------------------------------------------------------------------
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
{
[[[NSTableView _defaultTableHeaderSortImage]
TIFFRepresentation]
writeToFile: @"/tmp/sort-up.tiff" atomically: YES];
[[[NSTableView _defaultTableHeaderReverseSortImage]
TIFFRepresentation]
writeToFile: @"/tmp/sort-down.tiff" atomically: YES];
}
[pool release];
return 0;
}
----------------------------------------------------------------------------
Run the application and you will end up with 2 tiffs for sort-up.tiff
and sort-down.tiff in the /tmp directory.
Let me know if it does not work... this used to work pre-10.1.
- Jorge
Jorge Monteiro
JomoSoft LLC