Re: setDoubleAction: for NSTableView
Re: setDoubleAction: for NSTableView
- Subject: Re: setDoubleAction: for NSTableView
- From: Matt Ridley <email@hidden>
- Date: Sat, 23 Jun 2001 02:35:53 +0100
On 22/6/01 11:31 pm, Jason Brown <email@hidden> wrote:
>
Given that masterTableView is of type NSTableView, shouldn't the
>
following make it so that double-clicks from the mouse will invoke
>
the handleTVDoubleClick method as indicated? The controlling object
>
that implements handleTVDoubleClick is the delegate for
>
masterTableView. Is there something more that I need to add to this
>
to make it work?
>
>
[masterTableView setDoubleAction:@selector(handleTVDoubleClick:)];
That should work, but it will only fire when the user double-clicks on
either a column header or on an uneditable cell; it won't fire if the cell
is editable. Make sure the appropriate cells are not editable.
You can make cells uneditable by double-clicking on your NSTableView in
Interface Builder, then click on the appropriate column header (the column
header should turn blue), then uncheck the Editable checkbox in the Info
palette.
--
// Matt
- (void)contactMatt { // Contact Information ===============
if ([via email]) send = @"
mailto:email@hidden ";
else if ([via wwweb]) goto = @"
http://www.scotlandsoftware.com/ ";
} // ===================================