• 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
NSWindowController MyDocument not appearing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindowController MyDocument not appearing


  • Subject: NSWindowController MyDocument not appearing
  • From: Soares <email@hidden>
  • Date: Sun, 6 May 2007 17:07:54 +0100

// Commented out as recommended when overriding the makeWindowControllers
method
/*
- (NSString *)windowNibName
{
   return @"MyDocument";
}
*/

- (void)makeWindowControllers
{
   scOpenGLController = [[SCOpenGLController alloc] init];
   [self addWindowController:scOpenGLController];
}

When I implement the above I lose "My Document" window. I suspect it has
something to do with File Owner's or some such thing from what I have read
on the subject, but I'm a little confused by what's going on.

SCOpenGLController.m contains the following excerpts and seems to work fine,
and my custom panel appears as desired, but I never get the "My Document"
window.

Any ideas?

- (id)init
{
   if (self = [super initWithWindowNibName:@"MyDocument"])
   {
       [super initWithWindowNibName:@"SCOpenGL"];
   }
   return self;
}

- (NSString *)windowTitleForDocumentDisplayName: (NSString *)displayName
{
   NSString *string;
   string = [NSString stringWithFormat: @"Rendered view of %@",
displayName];

   return string;
}

- (void)windowDidLoad
{
   NSLog(@"Nib file is loaded");
}


Each document in the application has two windows: 1. Outline View <- File's owner is set to MyDocument 2. Opengl View <- File's owner is set to SCOpenGLController _______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSWindowController MyDocument not appearing
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: How to affinely transform an NSView's content
  • Next by Date: Leaks with Core-Data while fetching data
  • Previous by thread: Re: How to affinely transform an NSView's content
  • Next by thread: Re: NSWindowController MyDocument not appearing
  • Index(es):
    • Date
    • Thread