Re: How to make borderless window resizable
Re: How to make borderless window resizable
- Subject: Re: How to make borderless window resizable
- From: Ryan Bates <email@hidden>
- Date: Tue, 17 Feb 2004 20:06:09 -0800
Unfortunately, you'll have to handle resizing manually because a
resizable window requires a title bar. However, this shouldn't be too
hard to implement. In an NSWindow subclass you can listen for the mouse
down event; if it's in the bottom right corner then listen for dragging
- resize the window based on the amount the mouse moves while it is
dragging. I might be able to work up some quick code examples if you
need them.
Ryan
On Feb 17, 2004, at 12:49 PM, Jan H|lsmann wrote:
Hello,
in my app I have a borderless window, as in the RoundTransparentWindow
example provided by Apple, but without the round image.
How do I enable normal resizing behavior (i.e. click and drag the
lower right corner)?
Is there something like
- (void)setIsResizeable:(BOOL)resizeable
to use with NSWindow?
Any thoughts?
TIA,
--Jan--
_______________________________________________
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.