• 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
setting window style attributes in a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting window style attributes in a nib


  • Subject: setting window style attributes in a nib
  • From: Hua Ying Ling <email@hidden>
  • Date: Tue, 30 Mar 2004 17:25:05 -0500

I am looking for a way to take advantage of being able to design the interface in Interface Builder and at the same time be able to set the styleMask of a window.

Is there a way to set the styleMask attributes in Interface Builder?

If not, is there a better way to set the styleMask then the following? I am setting a window's styleMask to NSBorderlessWindowMask by subclassing NSWindow and ignoring the styleMask passed in to initWithContentRect and setting my own like this:

- (id)initWithContentRect:(NSRect) contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer: (BOOL)flag
{
self = [super initWithContentRect:contentRect styleMask: NSBorderlessWindowMask backing:backingType defer:flag];
.
.
.

Thanks
~Hua Ying
_______________________________________________
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.


  • Prev by Date: Re: Modifying the text attributes applied to an NSTextView
  • Next by Date: Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
  • Previous by thread: Re: graphs, pie and charts
  • Next by thread: Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
  • Index(es):
    • Date
    • Thread