Re: Small resize control with textured (metal) window
Re: Small resize control with textured (metal) window
- Subject: Re: Small resize control with textured (metal) window
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 18 Jun 2004 10:24:37 +0100
To get the same size widget, you need to have the same shape window.
There is a private method in NSWindow -setBottomCornerRounded:, which
Safari uses to get square bottom corners in its metal windows. Since
this method is private and undocumented, you'll want to cover your
back:
if ([myWindow respondsToSelector:@selector(setBottomCornerRounded:)])
[myWindow setBottomCornerRounded:NO];
Hey-presto, a metal window with a square bottom and small resize widget.
Hope this helps.
Regards,
-Jeremy
===================================
SkoobySoft, home of viJournal
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================
On 17 Jun 2004, at 8:19 pm, Paul Collins wrote:
I have a Cocoa textured (metal) window that shows an image with a small
status bar at the bottom.
The resize widget provided by Cocoa is too large for my status bar,
sticking into the image view. I want to use a small resize widget like
the one in non-textured windows. How?
_______________________________________________
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.