Re: Applying Style Masks to IB Windows
Re: Applying Style Masks to IB Windows
- Subject: Re: Applying Style Masks to IB Windows
- From: Vince DeMarco <email@hidden>
- Date: Mon, 15 Jul 2002 09:45:10 -0700
Create the window in IB, then assign the window in IB to your own
class, and over ride the designated initalizer for NSWindow
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
screen:(NSScreen *)screen;
This works for NSWindow, because IB doesn't archive and NSWindow class,
instead we archive a place holder.
vince
On Monday, July 15, 2002, at 03:48 AM, Jeremy Dronfield wrote:
Is there any way to apply a style mask such as NSBorderlessWindowMask
to windows created in Interface Builder? Re-creating the window
programmatically and then giving it the contentView from the IB window
seems a ridiculously tortuous way of doing it, but it's the only way I
can work out from the documentation. What I'd like is a nice simple
method like [[self window] setStyleMask: NSBorderlessWindowMask], but
there isn't one.
- Jeremy.
_______________________________________________
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.
_______________________________________________
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.