Re: Tear off...
Re: Tear off...
- Subject: Re: Tear off...
- From: Albert Atkinson <email@hidden>
- Date: Mon, 20 May 2002 14:21:59 -0500
Hello!
Is the source of this available so I can learn from how he
implements it? I can see what he did but the problem is I want to
know how he did it :-)
Thanks!
Albert
On Monday, May 20, 2002, at 02:01 PM, John C. Randolph wrote:
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.
_______________________________________________
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.