Re: cocoa dragging and constraining coordinates
Re: cocoa dragging and constraining coordinates
- Subject: Re: cocoa dragging and constraining coordinates
- From: Seth Willits <email@hidden>
- Date: Tue, 24 May 2011 10:27:49 -0700
On May 23, 2011, at 11:49 AM, Kyle Sluder wrote:
> On Mon, May 23, 2011 at 11:40 AM, Seth Willits <email@hidden> wrote:
>> If this is the case (I'm not sure either), then you'd do an internal-only drag using normal events, and when then mouse goes outside of the bounds of the view, it starts a an actual drag session. Safari's tabs I think are an example which fit with what he might want to do. You can only drag them horizontally which is done by normal events, and then if you drag too far vertically or of the ends of the window, it pops the tab off to drop elsewhere.
>
> Yeah, but that fails if you are dragging within a scroll view. I'm
> thinking of something like OmniGraffle.
No, it still works. Drag out of the view vs hold near the edge. Same as how a text view works. Exiting the view changes the type of drag so you couldn't reenter and expect internal-only behavior. (And that should be accompanied by a visual change.)
--
Seth Willits
_______________________________________________
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