Re: Tear off...
Re: Tear off...
- Subject: Re: Tear off...
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 20 May 2002 12:01:11 -0700
On Monday, May 20, 2002, at 07:01 AM, Mike Beam wrote:
I've never tried this, but it seems that you could track the
location of a
mouse drag that originates over a tab, and when the mouse is beyond the
window containing the tab view (or past someother threshold) you could
create a window whose content view is the content view of the tab in
question. Undoubtedly there are a lot of details to work out,
but this is
how I would start. Good luck!
The way I would recommend doing this, is to create an image of
the content you're going to drag and just use NSView's
-dragImage:.. method to start the dragging. When you get the
notification that the dragging ended, you can then create a new
window.
Have a look at Charles Jolley's Okito Composer app
(www.okito.net). The behavior of his tool pallettes is a pretty
good example.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.