How do you set the NSTableView Indicator Image
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.