I just found out how to use Safari's metal windows, where the bottom corners are not rounded, but squared like regular Aqua windows.
Here's how to do it in case anyone wants to know:
1.) Make a subclass of NSWindowController (I just called it MyWindowController).
2.) Create an outlet named "mainWindow".
3.) Create the files (Command-Option-F).
4.) Instantiate the subclass, and connect the outlets.
5.) Put the following in the header (.h) file for MyWindowController:
Code:
@protocol MyCoolProtocol
- (void) setBottomCornerRounded:(BOOL) flag;
@end
6.) Put the following in the interface (.m) file for MyWindowController:
Code:
- (void)awakeFromNib
{
if ([mainWindow respondsToSelector: @selector(setBottomCornerRounded:)])
{
[(id < MyCoolProtocol >)mainWindow setBottomCornerRounded:NO];
}
}
7.) Build and run. :-)