Re: NSTableView setDoubleAction:
Re: NSTableView setDoubleAction:
- Subject: Re: NSTableView setDoubleAction:
- From: Sunil <email@hidden>
- Date: Wed, 24 Mar 2004 11:10:14 +0530
>
Ok, what's the real command to cause a table to perform a function when
>
an item is double clicked.
>
In IB I made sure the table column in question (in a 1 column table)
>
was not editable as prescribed by developer.apple.com and then in my
>
awakeFromNib method I inserted [projectTable
>
setDoubleAction:@selector(openSelection:)]; when double clicking
>
anything in the table I get nothing. I added an NSLog(@"Called"); to my
>
-(IBAction)openSelection:(id)sender method and when I double click an
>
item in the table still nothing happens. No "Called" prints to the
>
console.
I think you might have forgot to call setTarget:
--Ramesh
------------------------------------------------------------------------
--
Ramesh PVK
Programmer
effigent India Pvt. Ltd.
$B,6(B Home : 040 27227830
: 040 31148951
------------------------------------------------------------------------
--
In a world without walls and fences, who does still need Windows and
Gates ?
_______________________________________________
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.