Re: Change style of a Window
Re: Change style of a Window
- Subject: Re: Change style of a Window
- From: Eric Forget <email@hidden>
- Date: Wed, 04 Feb 2004 13:10:40 -0500
>
How can I change the style of a Window from Aqua to Brushed Metal at
>
window startup?
You will have to create your window with either
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
or
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
screen:(NSScreen *)aScreen
and specifying the right styleMask for your needs. Unfortunately, we cannot
change it once the window is created. So, you cannot use Interface Builder
if you need such feature. However, you can create the rest of the window
content in IB, create your window programmatically, and then add the content
to your window.
Eric
___________________________________________________________________
Eric Forget Cafederic
email@hidden <
http://www.cafederic.com/>
Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.