• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Small resize control with textured (metal) window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Small resize control with textured (metal) window
      • From: Paul Collins <email@hidden>
References: 
 >Small resize control with textured (metal) window (From: Paul Collins <email@hidden>)

  • Prev by Date: Re: Color of string with link attribute
  • Next by Date: Re: Obj-C runtime not thread-safe?!
  • Previous by thread: Re: Small resize control with textured (metal) window
  • Next by thread: Re: Small resize control with textured (metal) window
  • Index(es):
    • Date
    • Thread