Re: DoubleClick in a NSTableView
Re: DoubleClick in a NSTableView
- Subject: Re: DoubleClick in a NSTableView
- From: Frank Blome <email@hidden>
- Date: Mon, 10 Jun 2002 11:39:47 +0200
On Montag, Juni 10, 2002, at 07:03 AM, Mike Vannorsdel wrote:
Don't forget to set the target too, or the table view won't know who to
send
the message to.
[yourTableView setTarget: someObject];
[yourTableView setDoubleAction: @selector (yourDoubleClickAction:)];
In the meantime I found it in the documentation and implemented it as
described:
// in my .h:
- (IBAction) myDoubleClickInList:(id)sender;
// in my .m
- (void) awakeFromNib {
//...
[table setTarget:self];
[table setDoubleAction:@selector(myDoubleClickInList:)];
//...
}
- (IBAction) myDoubleClickInList:(id)sender {
NSLog (@"myDoubleClickInList");
}
But unfortunately it doesn't work. I have set the Delegate in the IB (I
need it for someting other, too), can compile w/out any warning nor error
but nothing happens when I double-click in my table :-(
Where is my fault?
Frank
_______________________________________________
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.