• 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: Change style of a Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Change style of a Window (From: Roberto Sobachi <email@hidden>)

  • Prev by Date: [Q] how to tell when drawing is done?
  • Next by Date: Re: Cocoa/Windows parallel dvlpmt
  • Previous by thread: Change style of a Window
  • Next by thread: Interface builder NSScrollView problem
  • Index(es):
    • Date
    • Thread