• 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: Michael Dagate <email@hidden>
  • Date: Tue, 26 Jun 2001 19:50:03 -0500

Problem solved. As it turns out, I needed to connect the window outlet in the nib file. Everything is happy now.

Thanks for your help,
Michael

On Tuesday, June 26, 2001, at 01:19 PM, David P. Henderson wrote:

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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Document object retain and release (From: "David P. Henderson" <email@hidden>)

  • Prev by Date: Re: [NEWBIE] Sheets problem
  • Next by Date: NSToolbar and Interface Builder
  • Previous by thread: Re: Document object retain and release
  • Next by thread: Re: star questions
  • Index(es):
    • Date
    • Thread