Re: NSTableView and setDoubleAction:
Re: NSTableView and setDoubleAction:
- Subject: Re: NSTableView and setDoubleAction:
- From: Glenn Zelniker <email@hidden>
- Date: Thu, 11 Jan 2007 15:42:39 -0500
On Jan 11, 2007, at 3:35 PM, Ryan Homer wrote:
(I apologize if this message comes through more than once; problems
with Mail)
I have an NSTableView with two columns and have set each column as
NOT editable in Interface Builder. In my awakeFromNib method I have:
- (void)awakeFromNib
{
.
.
.
[contactListView setDataSource:self];
[contactListView setDelegate:self];
[contactListView setDoubleAction:@selector(rowDoubleClicked:)];
}
and in the same class, I also have:
- (IBAction)rowDoubleClicked:(id)sender
{
.
.
.
}
However, when I double-click on a row, it gets highlighted but
rowDoubleClicked: never gets called.
Add this:
[contactListView setTarget:self];
GZ
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden