• 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
Double-clicking in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Double-clicking in NSOutlineView
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Communication between an NSView and AppController;
  • Next by Date: memory leak with menu icon
  • Previous by thread: Calling a distant method...
  • Next by thread: Re: Double-clicking in NSOutlineView
  • Index(es):
    • Date
    • Thread