• 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
Design Decision: Passing Information Between Two Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Design Decision: Passing Information Between Two Applications


  • Subject: Design Decision: Passing Information Between Two Applications
  • From: Philip Dow <email@hidden>
  • Date: Thu, 9 Mar 2006 20:08:15 +0100

I am implementing an alarm system for my application, similar to what one sees in iCal. To ensure that the alarms go off when my application is not running, I am creating a helper application which starts up at logins and manages the alarms, also similar to iCal.

I am trying to decide the best way to pass a newly scheduled alarm from my main application to my alarm helper. Right now, I'm considering two options:

1. AppleScript - use a simple script to create a new alarm in my helper application.
2. Preferences - modify my helper's preferences file from the main application, and have the helper watch for changes here using a NSUserDefaultsDidChangeNotification mechanism.


What is the *simplest* way to do something like this, basically to pass a single object with information about an alarm from the main application to the helper application so that the helper can store than information and raise the alarm when necessary?

AppleScript is easy enough, once I have the scripting enviornment set up. Preferences seems even easier, but I'm not sure if the NSUserDefaultsDidChangeNotification works the way I'm expecting it to in this circumstance. Can I guarantee that it does?

Or is there an even better way to do this, better being simpler and requiring less effort, not more sophisticated?

-Phil
_______________________________________________
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: Design Decision: Passing Information Between Two Applications
      • From: Markus Hitter <email@hidden>
    • Re: Design Decision: Passing Information Between Two Applications
      • From: Jerry Krinock <email@hidden>
    • Re: Design Decision: Passing Information Between Two Applications
      • From: Alexander Dymerets <email@hidden>
  • Prev by Date: Re: ATSUI Bounding box
  • Next by Date: Re: Dumb Button binding Question
  • Previous by thread: Re: ATSUI Bounding box
  • Next by thread: Re: Design Decision: Passing Information Between Two Applications
  • Index(es):
    • Date
    • Thread