• 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: Justin Spahr-Summers <email@hidden>
  • Date: Wed, 23 Feb 2005 16:14:48 -0600

The best way to do it for multiple document types would probably be to
subclass NSDocumentController and override methods that create a new
document.

On Wed, 23 Feb 2005 09:40:50 -0800, Matt Neuburg <email@hidden> wrote:
> 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.
 _______________________________________________
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

References: 
 >Re: Receiving notification of New or Open document? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: scrollRangeToVisible is slowing me down
  • Next by Date: underlining for misspelled words draws in the wrong place
  • Previous by thread: Re: Receiving notification of New or Open document?
  • Next by thread: How to change mouse cursor in NSTextView
  • Index(es):
    • Date
    • Thread