Re: Newbie NSWindow question
Re: Newbie NSWindow question
- Subject: Re: Newbie NSWindow question
- From: Yann Bizeul <email@hidden>
- Date: Thu, 19 Dec 2002 20:31:39 +0100
>
I have also found the styleMask method and used this
>
to create a borderless window that cannot be moved, is
>
there some way of moving all of the objects from the
>
window created in Interface Builder to my new blank
>
window in a way that keeps all of there Outlets and
>
Actions etc?
I don't think so, but you can subclass your window. Create a new
NSWindow subclass, and in the code, override initWithContentRect: to be
:
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:backingType defer:flag ];
}
Now as your window is initialized, it will be without border, that's a
property you can not change after the window is initialized.
--
Yann Bizeul
TYNSOE.ORG -
http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
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.