• 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: setDoubleAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setDoubleAction


  • Subject: Re: setDoubleAction
  • From: John Stiles <email@hidden>
  • Date: Thu, 11 Aug 2005 18:26:08 -0700

I got the answer off-list--you need to call the following function:
[table setTarget:self];

No clue why it worked in one case and not another! But there you have it.


On Aug 11, 2005, at 5:43 PM, John Stiles wrote:

I have two NSTableViews; one is in a drawer and the other is in a sheet. I am calling -setDoubleAction: on both of them, so that it will be able to accept double-clicks on table items and call my selector.

For one view, it works perfectly.

For the other view, it just beeps at me no matter where I double- click inside the table. My selector is never called.

I have tried to make both NSTableViews as close as possible in every way, and I'm totally stumped as to why one would work and the other would not.

How could I go about debugging this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >setDoubleAction (From: John Stiles <email@hidden>)

  • Prev by Date: Custom NSView and KVC compliance for bindings
  • Next by Date: NSTextInput protocol - 'unmarkText' is late?
  • Previous by thread: setDoubleAction
  • Next by thread: Custom NSView and KVC compliance for bindings
  • Index(es):
    • Date
    • Thread