Re: How to drag window without title bar
Re: How to drag window without title bar
- Subject: Re: How to drag window without title bar
- From: Dave Carrigan <email@hidden>
- Date: Wed, 11 Nov 2009 20:03:05 -0800
On Nov 11, 2009, at 7:57 PM, Symadept wrote:
> Hi,
>
> With respect to the example,
> http://developer.apple.com/mac/library/samplecode/RoundTransparentWindow/
>
> I wanted to move the window with mouse drag. How can I do that?
Did you actually spend any time reading that code before firing off to the list?
From the readme.txt:
CustomWindow
Subclass of NSWindow with a custom shape and transparency. Since the window will not have a title bar, -mouseDown: and -mouseDragged: are overriden so the window can be moved by dragging its content area.
--
Dave Carrigan
email@hidden
Seattle, WA, USA
_______________________________________________
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