• 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: Indicator image in a Table Column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Drawing a String in Java
  • Next by Date: Re: Out-of-date Dev Docs?
  • Previous by thread: Indicator image in a Table Column
  • Next by thread: Saving an image without a dialog
  • Index(es):
    • Date
    • Thread