• 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: multiple window per document problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple window per document problems


  • Subject: Re: multiple window per document problems
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 6 Jun 2004 13:44:07 -0700

On Jun 6, 2004, at 12:35 PM, m wrote:

- (void)makeWindowControllers
{
NSWindowController* aWindowController;

aWindowController = [[NSWindowController alloc]initWithWindowNibName:[self windowNibName] owner:self];
[self addWindowController:aWindowController];
[aWindowController setShouldCloseDocument:YES];

aWindowController = [[NSWindowController alloc]initWithWindowNibName:@"Subwindow" owner:self];
[self addWindowController:aWindowController];
[aWindowController setShouldCloseDocument:NO];

aWindowController = [[NSWindowController alloc]initWithWindowNibName:@"Subwindow" owner:self];
[self addWindowController:aWindowController];
[aWindowController setShouldCloseDocument:NO];
}

What about memory management...?

aWindowController = [[NSWindowController alloc]initWithWindowNibName:@"Subwindow" owner:self];
[self addWindowController:aWindowController];
[aWindowController release]; // ****
[aWindowController setShouldCloseDocument:NO];

mmalc
_______________________________________________
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: multiple window per document problems (From: m <email@hidden>)

  • Prev by Date: Re: multiple window per document problems
  • Next by Date: Re: NSDocument application: How do I maintain a single window?
  • Previous by thread: Re: multiple window per document problems
  • Next by thread: Bindings: personName.length can't handle changing personName
  • Index(es):
    • Date
    • Thread