• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView auto expand threshold
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView auto expand threshold


  • Subject: Re: NSOutlineView auto expand threshold
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 16 Sep 2010 17:24:13 -0700

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

  • Follow-Ups:
    • Re: NSOutlineView auto expand threshold
      • From: email@hidden
References: 
 >NSOutlineView auto expand threshold (From: email@hidden)

  • Prev by Date: Re: Why is NSPopUp broken in drop-down mode?
  • Next by Date: Re: CGContextSelectFont spinlock
  • Previous by thread: NSOutlineView auto expand threshold
  • Next by thread: Re: NSOutlineView auto expand threshold
  • Index(es):
    • Date
    • Thread