Re: NSOutlineView auto expand threshold
Re: NSOutlineView auto expand threshold
- Subject: Re: NSOutlineView auto expand threshold
- From: email@hidden
- Date: Fri, 17 Sep 2010 08:16:42 -0600
Word up! Looks like the solution ... Thanks.
-koko
On Sep 16, 2010, at 6:24 PM, Jerry Krinock wrote:
On 2010 Sep 16, at 11:46, email@hidden wrote:
I found a hack in the archives to impose a delay on the auto expand
when over a parent node but was wondering if there is a 'preferred'
or 'acceptable' method of changing the auto expand threshold.
If you're looking for a solution to the "Make those @%#$%! things
stop springing open!" issue, I've gotten a few compliments and no
complaints with this:
• During dragging, display a tooltip which says something like "To
stop folders from springing open, hold down 'shift' key".
• Detect shift key down in -draggingUpdated: and if so, remove the
tooltip, and set a flag.
• In -outlineView:shouldExpandItem:, if the flag is YES, inhibit
expansion.
• A timer resets the flag after 250 milliseconds.
The reason for the timer, as I recall, is that there are several
ways in which a drag operation could end, and the timer was the only
way to cover all the corner cases.
_______________________________________________
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
_______________________________________________
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