On 2010 Sep 16, at 11:46, k...@highrolls.net 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to