• 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: Where to pu setIndicatorImage: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Where to pu setIndicatorImage: ?
      • From: "Tony S. Wu" <email@hidden>
References: 
 >Where to pu setIndicatorImage: ? (From: "Tony S. Wu" <email@hidden>)

  • Prev by Date: Re: NSThread and NSAutoReleasePool
  • Next by Date: Re: Super vs. self (newbie question)
  • Previous by thread: Where to pu setIndicatorImage: ?
  • Next by thread: Re: Where to pu setIndicatorImage: ?
  • Index(es):
    • Date
    • Thread