• 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: "Tony S. Wu" <email@hidden>
  • Date: Sun, 11 Aug 2002 10:09:22 -0700

Of course.
That makes sense.
I was just wondering why my

- (BOOL)tableview:(NSOutlineView *)aTableView
shouldSelectTableColumn:(NSTableColumn *)aTableColumn

didn't get called.
I didn't allow it to select column in IB :)
Thanks for your help.

Tony S. Wu
email@hidden

"Nope, this world ain't perfect. But at least I know it's not because of
me."



Olivier at email@hidden wrote:

> 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.

References: 
 >Re: Where to pu setIndicatorImage: ? (From: Olivier <email@hidden>)

  • Prev by Date: A Short DO Problem
  • Next by Date: NSToolbarItem actions and modifier keys
  • Previous by thread: Re: Where to pu setIndicatorImage: ?
  • Next by thread: NSThread and NSAutoReleasePool
  • Index(es):
    • Date
    • Thread