Opening multiple times the same window ?
Opening multiple times the same window ?
- Subject: Opening multiple times the same window ?
- From: Yann Bizeul <email@hidden>
- Date: Sun, 17 Nov 2002 00:27:17 +0100
Hi,
I created a generic window in IB that I would like to instanciate to
open multiple time.
The generic window is configured to open at launch time, and in
implemened like that :
@implementation logWindow
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect
styleMask:NSBackingStoreBuffered backing:backingType defer:flag ];
[ self setHasShadow: NO ];
[ self setOpaque: NO ];
[ self setBackgroundColor: [NSColor clearColor]];
return self;
}
I just want a borderless transparent window.
Now to create a new one :
NSRect logWindowRect = NSMakeRect(0 , 0 , 100, 100);
testLog = [[ logWindow alloc ] initWithContentRect: logWindowRect
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: NO
];
[ testLog makeKeyAndOrderFront: self ];
But nothing happen. Where am I wrong ?
--
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.