• 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
How do you set the NSTableView Indicator Image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do you set the NSTableView Indicator Image


  • Subject: How do you set the NSTableView Indicator Image
  • From: Noah Lieberman <email@hidden>
  • Date: Mon, 18 Mar 2002 00:27:01 -0700

I have an NSTableView that I am trying to provide sorting functionality
similar to any number of Apple9s apps such that clicking on a table header
column makes that table column stay highlighted in the aqua color, and
displays a little up or down triangle. In ObjC NSTableView provides a
setIndicatorImage:inTableColumn: method, however in Cocoa Java there does
not appear to be an equivalent.

The only way I9ve been able to get an image to display WITH the title is to
create a new NSButtonCell and set the NSTableColumns header cell to that
after setting it9s image and title. But then of course the highlight looks
completely wrong.

Additionally, neither in ObjC or Java can I get the table column to stay
highlighted... Is shows blue when you click it then goes back to being
grey...

Surely someone else has created an NSTableView with sorting? Help?

Thanks,

Noah


--
Noah Lieberman
email@hidden
++ATH
"One hundred percent of the shots you don't take, don't go in." - Wayne
Gretzky
_______________________________________________
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: How do you set the NSTableView Indicator Image
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Newbie - which NSTextField is the cursor in?
  • Next by Date: Re: Newbie with stupid question
  • Previous by thread: Re: chasing arrows?
  • Next by thread: Re: How do you set the NSTableView Indicator Image
  • Index(es):
    • Date
    • Thread