• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Two windows in a nib with NSWindowController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Printing A4 images at 300dpi
  • Next by Date: Re: Can't exec from a Cocoa app?
  • Previous by thread: Printing A4 images at 300dpi
  • Next by thread: Re: Two windows in a nib with NSWindowController?
  • Index(es):
    • Date
    • Thread