• 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: IntraApp Communication....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IntraApp Communication....


  • Subject: Re: IntraApp Communication....
  • From: James DiPalma <email@hidden>
  • Date: Sat, 28 Sep 2002 02:32:46 -0400

From: "Steven M.Palm" <email@hidden>

subclassing NSApplication [not recommended, from what I've read]

I wonder why. Where did you read this?

I can see recommending using alternate techniques for solving problems, like a separate controller, a delegate, notifications (didFinishLaunching and others), or other solutions. But, I am unfamiliar with why a subclass would be discouraged if your instance of NSApplication has to handle a method.

I would recommend either a category that forwards all applescript messages to another controller, or an NSApplication subclass that handles applescript messages itself.

Reality is that your code will probably work fine in a few different locations and what your comfortable with is important, so stick to a category. I'm just curious why a subclass would be discouraged.


-jim
_______________________________________________
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.

  • Follow-Ups:
    • Re: IntraApp Communication....
      • From: Jonathan Jackel <email@hidden>
References: 
 >Re: IntraApp Communication.... (From: "Steven M.Palm" <email@hidden>)

  • Prev by Date: [Newbie] Document Format Advice
  • Next by Date: sub classing NSTableView
  • Previous by thread: Re: IntraApp Communication....
  • Next by thread: Re: IntraApp Communication....
  • Index(es):
    • Date
    • Thread