
/*
	Get Ascending and Descending Sort indicator images, 10.1 and 10.2 compatible
	Original Source: <http://cocoa.karelia.com/AppKit_Categories/NSTableView/Get_Ascending_and_D.m>
	(See copyright notice at <http://cocoa.karelia.com>)
*/

/*"	Return the sorting indicator image; works on 10.1 and 10.2.
"*/

+ (NSImage *) ascendingSortIndicator
{
	NSImage *result = [NSImage imageNamed:@"NSAscendingSortIndicator"];
	if (nil == result && [[NSTableView class] respondsToSelector:@selector(_defaultTableHeaderSortImage)])
	{
		result = [NSTableView _defaultTableHeaderSortImage];
	}
	return result;
}

/*"	Return the sorting indicator image; works on 10.1 and 10.2.
"*/

+ (NSImage *) descendingSortIndicator
{
	NSImage *result = [NSImage imageNamed:@"NSDescendingSortIndicator"];
	if (nil == result && [[NSTableView class] respondsToSelector:@selector(_defaultTableHeaderReverseSortImage)])
	{
		result = [NSTableView _defaultTableHeaderReverseSortImage];
	}
	return result;
}
