Two windows in a nib with NSWindowController?
Two windows in a nib with NSWindowController?
- Subject: Two windows in a nib with NSWindowController?
- From: Trygve Inda <email@hidden>
- Date: Thu, 24 Aug 2006 15:50:53 +0000
- Thread-topic: Two windows in a nib with NSWindowController?
I have a nib with two windows that acts as a subclass of NSWindowController.
There are two NSWindow*... progressSheet and destinationSheet
I call:
- (id)initWithObject:(id)anObject
{
self = [super initWithWindowNibName:@"MyNib"];
bridge = [anObject retain];
return self;
}
Calling:
NSApp beginSheet:progressSheet modalForWindow:hostWindow modalDelegate:self
didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo:nil];
Only works if window is set to progressSheet in the nib. And if so then
there is no way to make destinationSheet work in a similar way.
Calling [self setWindow:progressSheet]; does not work either.
Do I need to not be a subclass of NSWindowController?
If I make it a subclass of NSObject, how do I init my nib... Somehow replace
[super initWithWindowNibName:@"MyNib"]; so that my two IBOutlet for the
NSWindow* get connected?
Confused here.
Thanks,
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden