FROM : Yann Bizeul
DATE : Wed Nov 20 14:47:41 2002
Hi there,
I saw some messages about this on the archives, but not about this
specific issue. I have to subclass NSWindow because it is Borderless,
so I override in LogWindow.m with :
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:backingType defer:flag ];
[ self setHasShadow: NO ];
[ self setOpaque: NO ];
[ self setBackgroundColor: [NSColor clearColor]];
return self;
}
I load this window with :
LogWindowController = [[ NSWindowController alloc ]
initWithWindowNibName: @"logWindow" ];
Great, now I have to use it !, if I do a :
[ LogWindowController showWindow ];
but nothing happen.
After this, I have to get the window object of the controller, to store
it in a NSDictionary, but I have an incompatible pointer type :
LogWindow *myLogWindow;
LogWindow = [ myLogWindowController window ];
The problem is that window: method return NSWindow, not LogWindow.
Any idea to use multiple instance of the same window in IB ?
Thanks
--
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Wed Nov 20 14:47:41 2002
Hi there,
I saw some messages about this on the archives, but not about this
specific issue. I have to subclass NSWindow because it is Borderless,
so I override in LogWindow.m with :
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:backingType defer:flag ];
[ self setHasShadow: NO ];
[ self setOpaque: NO ];
[ self setBackgroundColor: [NSColor clearColor]];
return self;
}
I load this window with :
LogWindowController = [[ NSWindowController alloc ]
initWithWindowNibName: @"logWindow" ];
Great, now I have to use it !, if I do a :
[ LogWindowController showWindow ];
but nothing happen.
After this, I have to get the window object of the controller, to store
it in a NSDictionary, but I have an incompatible pointer type :
LogWindow *myLogWindow;
LogWindow = [ myLogWindowController window ];
The problem is that window: method return NSWindow, not LogWindow.
Any idea to use multiple instance of the same window in IB ?
Thanks
--
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

