Re: Setting double action from NSCell
Re: Setting double action from NSCell
- Subject: Re: Setting double action from NSCell
- From: Hamish Allan <email@hidden>
- Date: Mon, 14 Nov 2005 11:58:48 +0000
On Fri, 11 Nov 2005 15:21:58 -0800 (PST), Ian was here
<email@hidden> wrote:
I have an NSOutlineView with a single column. Each
type of cell must react to a double click in it's own
way. I would like to have a specific row or cell being double
clicked call an action method, but all other cells can
have their text edited from a double click (which is
default behaviour).
Use NSOutlineView's -setTarget: and -setDoubleAction: methods to
specify a method to be called when the user double-clicks on an
uneditable cell. Use NSCell's -setCellAttribute:NSCellEditable to:NO
(or override -isEditable) to make the appropriate cell type uneditable.
Best wishes,
Hamish
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden