Re: can't set double action in NSOutlineView
Re: can't set double action in NSOutlineView
- Subject: Re: can't set double action in NSOutlineView
- From: p3consulting <email@hidden>
- Date: Fri, 14 Mar 2003 15:39:27 +0100
>
FROM: Donald Hall
>
DATE: 2003-03-14 08:25
>
>
Hi all,
>
>
I am trying to set the double click action in an NSOutlineView, but
>
it's not working. Double clicking an item in my outline view still
>
causes the default behavior of making the text editable to happen. In
>
my windowControllerDidLoadNib: method I have the following lines:
>
>
In IB you have to turn turn off the editable flag for the column cell.
As stated in the doc:
setDoubleAction:
- (void)setDoubleAction:(SEL)aSelector
Sets the message sent to the target when the user double-clicks an
uneditable cell or a column header to aSelector. If the double-clicked
cell is editable, this message isn't sent and the cell is edited
instead. You can use this method to implement features such as sorting
records according to the column that was double-clicked.
See Also: - setAction: (NSControl), - setTarget: (NSControl), -
doubleAction
email@hidden
_______________________________________________
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.