• 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: Sort Status in NSTableHeaderView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Sort Status in NSTableHeaderView (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: exception in class derived from NSMutableDictionary
  • Next by Date: Re: Scrollers not available in TableView
  • Previous by thread: Sort Status in NSTableHeaderView
  • Next by thread: Scrollers not available in TableView
  • Index(es):
    • Date
    • Thread