Re: NSOutlineView setDoubleAction: working on 10.5, but not on 10.4.11
Re: NSOutlineView setDoubleAction: working on 10.5, but not on 10.4.11
- Subject: Re: NSOutlineView setDoubleAction: working on 10.5, but not on 10.4.11
- From: Jerry Krinock <email@hidden>
- Date: Sat, 15 Nov 2008 05:54:43 -0800
On 2008 Nov, 15, at 2:54, Nick Rogers wrote:
when double clicking on an item the action method is not being
called in 10.4.11.
Its working fine on Leopard.
The behavior was indeed changed in Leopard:
http://developer.apple.com/releasenotes/Cocoa/AppKit.html
"NSTableView/NSOutlineView - Single click to editNSTableView and
NSOutlineView now behave like Finder and allow a single click to put
it into edit mode. This is done by calling -
hitTestForEvent:inRect:ofView: and checking if the cell returns
NSCellHitEditableTextArea. This allows you to set a doubleAction and
perform some different task when the doubleAction is invoked (for
instance, Finder opens files on a double click, and edits via a single
click). If the doubleAction is not set, editing is still allowed via a
double click."
The converse of this statement would be that, in 10.4.11,
doubleclicking will always edit.
Personally, I believe this should be explained in the current
documentation, but I've seen other cases in which Apple documents
version-specific behavior changes in Release Notes only. I don't know
if that is intentional Apple policy or a bug.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden