Design Decision: Passing Information Between Two Applications
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