• 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: Receiving notification of New or Open document?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Receiving notification of New or Open document?


  • Subject: Re: Receiving notification of New or Open document?
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 23 Feb 2005 09:40:50 -0800

On Mon, 21 Feb 2005 23:26:21 -0800, Jason Staczek <email@hidden>
said:

>My app has a main controller that's always up, regardless of whether
>there's a doc open. What's the right way for the controller to be
>notified when a new document is created or an existing document is
>opened?

The right way when there can be such a thing as a "new document" or an
"existing document" is to use the document architecture, in which case the
problem is solved for you (NSDocument). m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Receiving notification of New or Open document?
      • From: Justin Spahr-Summers <email@hidden>
  • Prev by Date: Re: Indexing/Directory Enumeration
  • Next by Date: Re: Cropped Italic Letters
  • Previous by thread: Receiving notification of New or Open document?
  • Next by thread: Re: Receiving notification of New or Open document?
  • Index(es):
    • Date
    • Thread