Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setDoubleAction



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:
http://lists.apple.com/mailman/options/cocoa-dev/jstiles% 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >setDoubleAction (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.