Double-clicking in NSOutlineView
Double-clicking in NSOutlineView
- Subject: Double-clicking in NSOutlineView
- From: Tim Hewett <email@hidden>
- Date: Tue, 25 Nov 2003 18:23:02 +0000
Hi,
I'm trying to get some friendly behaviour in my NSOutlineView. It
contains cells which are a NSButtonCell checkbox with text, and
I would like the checkbox to alternate each time it is clicked, even
if double-clicked. It alternates quite happily with single clicks,
double-clicking is a problem.
I have tried using setDoubleAction: (and setTarget:) to have the
checkbox specifically alternate when double-clicked, but my
specified doubleAction selector only gets called in rare and
unusual circumstances, usually when there is a multiple selection
and the apple key is held down. Never when an ordinary double
click happens.
So I decided to try to turn off responding to double clicking and
to have the NSOutlineView treat each click individually, alternating
the checkbox each time. The view's NSControl setIgnoresMultiClick:
method was called, firstly with YES, as that seemed to make
sense, then with NO when YES didn't work. NO didn't work
either.
What's going wrong? I can't trap double clicks and I can't stop
them either. Any advice much appreciated.
If someone can tell me where all my hair has gone too I would
be very grateful. It was there yesterday... :-o
Regards,
Tim.
_______________________________________________
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.