setting window style attributes in a nib
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.