• 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: Multiple windows in a doc based app How-To
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple windows in a doc based app How-To


  • Subject: Re: Multiple windows in a doc based app How-To
  • From: Joseph Jones <email@hidden>
  • Date: Sat, 2 Mar 2002 20:55:41 -0800

Hmm...loks like those are gone already. At least, all I get is a compiler warning that those methods do not exist and searching the header files shows me nothing.

Oh, well. Nice try.

Thanx,
joe

On Saturday, March 2, 2002, at 04:49 PM, Jeff Gilbert wrote:

On Saturday, March 2, 2002, at 01:55 PM, Joseph Jones wrote:

On a side note, I'd like to add a little sort up/down arrow to my table column headers to show my current sort direction for that column. Where can I hook to do this? Is there a character for these arrows, or will I have to use NSBezierPath to draw it?

To set an image in a table column, use [NSTableView setIndicatorImage:inTableColumn]. Currently, there are two undocumented selectors on NSTableView, _defaultTableHeaderSortImage and _defaultTableHeaderReverseSortImage. These return up and down arrows. So, to set the correct image in your table, do something like the following:

if (ascending)
[table setIndicatorImage:[NSTableView _defaultTableHeaderSortImage] inTableColumn:sortColumn];
else
[table setIndicatorImage:[NSTableView _defaultTableHeaderReverseSortImage] inTableColumn:sortColumn];

Of course, those two selectors may disappear in the future, so you should do a runtime check to make sure they are there.

Jeff Gilbert
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Multiple windows in a doc based app How-To
      • From: email@hidden
References: 
 >Re: Multiple windows in a doc based app How-To (From: Jeff Gilbert <email@hidden>)

  • Prev by Date: Re: URL o' my dreams
  • Next by Date: Re: Bundles as plugins
  • Previous by thread: Re: Multiple windows in a doc based app How-To
  • Next by thread: Re: Multiple windows in a doc based app How-To
  • Index(es):
    • Date
    • Thread