• 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: "Steven M.Palm" <email@hidden>
  • Date: Fri, 27 Sep 2002 20:59:56 -0500

On Friday, September 27, 2002, at 08:36 PM, Buzz Andersen wrote:
I have a category defined on NSApplication.

If you don't mind my asking, do you have a specific reason for using a category on NSApplication?

It was my understanding that if I wanted to be able to do the following:

tell application "Foo"
command withParam param1
end tell

In Applescript, it is an application-level command, and therefore I would have to either use a category, subclassing NSApplication [not recommended, from what I've read], or doing it differently and subclassing NSScriptCommand, but I didn't like the way that solution looked. Personal preference, I guess.

The norm would really be to put all of your logic in a controller class that is a delegate of your program's NSApplication instance (create an instance of your controller class in Interface Builder and connect it to the "delegate" outlet of "File's Owner" in your Nib) and let the run loop do the rest.

I am still learning Cocoa, and just picked up a copy of "Cocoa Programming for MacOS X". Much better, in my opinion, than the "Learning Cocoa" I was using. However, still much to learn, but I'm trying. ;-)

Does this answer your question, or did you already know all of that :-)?

Some, but not all, and I thank you for sharing!

-----------------------
- Steven M. Palm
- Ham Radio Call: N9YTY
-----------------------
_______________________________________________
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: James DiPalma <email@hidden>
References: 
 >IntraApp Communication.... (From: Buzz Andersen <email@hidden>)

  • Prev by Date: IntraApp Communication....
  • Next by Date: awakeAfterUsingEncoder:
  • Previous by thread: IntraApp Communication....
  • Next by thread: Re: IntraApp Communication....
  • Index(es):
    • Date
    • Thread