• 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: Buzz Andersen <email@hidden>
  • Date: Fri, 27 Sep 2002 21:44:03 -0600

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.

Ah...I see.

Well, in that case, I guess the only thing I would add to the way you are doing it now might be to connect your controller to "File's Owner" in your Nib, and then the controller would be your application's delegate. Then you could send commands from your NSApplication category to your controller like this:

[[self delegate] doTheControllerMethod];

Anybody else have any better ideas (I'd be curious to know myself)?

--
Buzz Andersen
email: email@hidden
web: http://www.scifihifi.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.

  • Follow-Ups:
    • Re: IntraApp communication....
      • From: "Steven M.Palm" <email@hidden>
  • Prev by Date: awakeAfterUsingEncoder:
  • Next by Date: Re: [Q]mouseDown: in TV (was Re: Menu when click on table cell)
  • Previous by thread: Re: IntraApp Communication....
  • Next by thread: Re: IntraApp communication....
  • Index(es):
    • Date
    • Thread