• 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
Manually creating new NSDocuments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Manually creating new NSDocuments


  • Subject: Manually creating new NSDocuments
  • From: Peter Horn <email@hidden>
  • Date: Wed, 27 Feb 2002 22:10:00 +0100

Hi!

I have a multi-document app, where I subclassed NSDocument to CMNotebook via IB. Now I have a button in the document window to open a new -- somewhat dependent -- document window. I have no idea how to do this, I thought about something like:

...
CMNotebook newNotebook;
newNotebook = [[CMNotebook alloc] initWithKernel:kernel];
...

where in CMNotebook I have

- (CMNotebook *)initWithKernel:(CMKernel *)kernel {
[super init];
...
return self;
}

But no window shows up. I have the impression that I need an NSDocumentController, but I don't know how to access to it.

Any ideas? Thanks,
Peter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Idle Time in a loop (From: Judi Smith <email@hidden>)

  • Prev by Date: Re: Carbon Date to NSDate - Here's How
  • Next by Date: Re: NSView Names
  • Previous by thread: Re: Idle Time in a loop
  • Next by thread: Re: Idle Time in a loop
  • Index(es):
    • Date
    • Thread