• 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
Re: Document object retain and release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document object retain and release


  • Subject: Re: Document object retain and release
  • From: "David P. Henderson" <email@hidden>
  • Date: Tue, 26 Jun 2001 14:19:55 -0400

Have you looked at the Vermont Recipes? http://www.stepwise.com/Articles/VermontRecipes/

But to set you on the path. You don't want NSDocumentController involved here; you want your NSDocument subclass dealing with this. Implement -makeWindowControllers instead of -windowNibname in your doc subclass.

- (void)makeWindowControllers
{
MyWindowController *windowController = [[MyWindowController alloc] init]; // create a window controller

[self addWindowController:windowController]; // add to the windowControllers array
[windowController release]; // now we're done with it.
}

Dave
--
Chaos Assembly Werks
"The proper office of a friend is to side with you when you are in the wrong. Nearly anybody will side with you when you are in the right."
- Mark Twain


  • Follow-Ups:
    • Re: Document object retain and release
      • From: Michael Dagate <email@hidden>
    • Re: Document object retain and release
      • From: Michael Dagate <email@hidden>
References: 
 >Document object retain and release (From: Michael Dagate <email@hidden>)

  • Prev by Date: Re: Cocoa Template Type
  • Next by Date: Re: [NEWBIE] Sheets problem
  • Previous by thread: Document object retain and release
  • Next by thread: Re: Document object retain and release
  • Index(es):
    • Date
    • Thread