Re: Where to pu setIndicatorImage: ?
Re: Where to pu setIndicatorImage: ?
- Subject: Re: Where to pu setIndicatorImage: ?
- From: Olivier <email@hidden>
- Date: Sat, 10 Aug 2002 14:56:36 -0500
put it in - (BOOL)outlineView:(NSOutlineView *)outlineView
shouldSelectTableColumn:(NSTableColumn *)tableColumn in your delegate
and be sure to return no if you don't want to allow the selection of
tableColumn. Also you'll first need to set allow column selection for
the outline view (or tableView) otherwise that function won't even get
called.
Olivier
On Saturday, August 10, 2002, at 12:03 PM, Tony S. Wu wrote:
In this function:
- (void)tableView: (NSTableView*)tableView
mouseDownInHeaderOfTableColumn: (NSTableColumn *)theColumn
I have this line:
[entryTable setIndicatorImage:
(sortDirection == 0) ?
[NSTableView _defaultTableHeaderSortImage] :
[NSTableView _defaultTableHeaderReverseSortImage]
inTableColumn: theColumn];
for setting a table column's indicator image when user clicks on a
header
view.
The problem is because I put the line in
mouseDownInHeaderOfTableColumn, it
gets called also when user is dragging and resizing the column.
I am sure there is another place to do this.
Thanks for your advice.
Tony S. Wu
email@hidden
"Nope, this world ain't perfect. But at least I know it's not because of
me."
_______________________________________________
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.