Re: Sort Status in NSTableHeaderView
Re: Sort Status in NSTableHeaderView
- Subject: Re: Sort Status in NSTableHeaderView
- From: Chris Hanson <email@hidden>
- Date: Wed, 30 Jul 2003 15:32:00 -0500
On Tuesday, July 29, 2003, at 04:21 PM, Lorenzo wrote:
1) I know I have to do all of that by myself, but how to do?
I think this may only be available in Jaguar and later, but you can use
NSImage *ascendingIndicator = [NSImage
imageNamed:@"NSAscendingSortIndicator"];
NSImage *descendingIndicator = [NSImage
imageNamed:@"NSDescendingSortIndicator"];
to get the images to put in the table header.
Then you can use -[NSTableView setIndicatorImage:inTableColumn:] to
configure the indicator. (If you look at the documentation for this
method, it mentions the above indicator names.)
To get the blue highlight in the header, use -[NSTableView
setHighlightedTableColumn:].
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.