Drag to a Drawer
Posted May 3rd, 2004 @ 08:05pm by Erik J. Barzeski
In Mail, when you drag a message one way, the drawer opens on that side, and vice versa. There's a bit of a "dead zone" in the middle where a drawer doesn't open at all, but clearly that depends on the initial location of the click-down: towards the side of the window and the dead zone is smaller or you'd be off the window before the drawer opened.
I was nearly certain that this was a "for free" behavior in Cocoa, but as we look to add and refine this feature (it's added, but it only works on one side) to PulpFiction, we realize it's not. A search of the Apple docs (and Example applications) yields nothing, as does a search of cocoa.mamasam.com (to which I've contributed - and to which you should as well).
Anyone got any input here? We're stuck. Not wanting to roll our own if we don't have to, but unable to find a pre-rolled solution.
Posted 03 May 2004 at 8:29pm #
nope, haven't seen any code anywhere to do this.. actually, I don't think I've seen any apps other than Mail which do this.
there are a lot of things like this which I wish Apple would release as sample code.
Posted 03 May 2004 at 8:33pm #
We've now implemented it.
Posted 03 May 2004 at 8:46pm #
Apple's Mail is the only program I've seen with that behavior (though I haven't exactly searched for it much). If you do end up rolling it yourself, maybe you could write it up as a CocoaDevCentral article or something 🙂
Posted 03 May 2004 at 8:48pm #
oops, I was a bit slow in posting that comment I see...