• 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
Fwd: Controller layer & document architecture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Controller layer & document architecture


  • Subject: Fwd: Controller layer & document architecture
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 23 Jun 2004 12:17:10 -0700

Ooops, some errors with my Mail.app editing (forgot the std disclaimer):

In your inspector panel's -init method, add:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDidBecomeMain) name:NSWindowDidBecomeMainNotification object:nil];

In your inspector panel controller's -init method, add the line:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDidBecomeMain:) name:NSWindowDidBecomeMainNotification object:nil];

And in -dealloc, add the line:

[currentDocument release];

HTH~
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.


  • Prev by Date: Re: Controller layer & document architecture
  • Next by Date: Change the Icon File
  • Previous by thread: Re: Controller layer & document architecture
  • Next by thread: Really dumb Xcode question
  • Index(es):
    • Date
    • Thread