• 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
Newbie Q: equipping an NSDocument subclass with a window controller (2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie Q: equipping an NSDocument subclass with a window controller (2)


  • Subject: Newbie Q: equipping an NSDocument subclass with a window controller (2)
  • From: email@hidden
  • Date: Wed, 12 Oct 2005 17:17:47 +0200 (CEST)
  • Importance: Normal

  Hello all,

 and thank you for your help Sherm, but I'm still stuck.
Let me explain my problem in more detail :

  I've got a "global controller" class (called AppController) that deals with
the various controllers inside my project. Among those
controllers, there is a NSDocument subclass (called
BlueDocument). AppController has a method
showBlueWindow like this :

 -(void) showBlueWindow {

      if (!blueWindow) {
              BlueWindow* blueWindow=[[BlueWindow alloc] init];
       }
      [blueWindow showWindows];
}

  and since I've implemented -makeControllerWindows for this
class BlueWindows (like this, following Sherm's guidelines)

   - (void) makeWindowControllers
{
	NSWindowController *c = [[[NSWindowController alloc]
initWithWindowNibName: @"BlueWindow" owner:self] autorelease];
	[self addWindowController: c];
}

  I expected the BlueWindow.nib file to be loaded automatically when the
blueWindow object is first created. But I was wrong, and indeed the debugger
screens a message like this :

 warning: Couldn't raise load state for requested shlib:
"AppController.ob" for breakpoint 2.

   so what must I do ? insert a windowControllerWillLoadNib instruction
somewhere ?

                                                                               Ewan



 _______________________________________________
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

  • Follow-Ups:
    • Re: Newbie Q: equipping an NSDocument subclass with a window controller (2)
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: CoreData XML error while saving
  • Next by Date: Re: Spotlight view
  • Previous by thread: NSFormatter, bindings & control:didFailToFormatString:
  • Next by thread: Re: Newbie Q: equipping an NSDocument subclass with a window controller (2)
  • Index(es):
    • Date
    • Thread