• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Design question


  • Subject: Design question
  • From: "Marcus S. Zarra" <email@hidden>
  • Date: Thu, 27 Apr 2006 09:27:50 -0600

Hello list :)

I am in the design phase of a new application and am trying to solve an issue and would love to hear some suggestions from the list.

In this application I will be using sync services to talk with one more more other applications. In Sync Services it is possible to have the truth engine notify a helper application when a sync is about to start. This helper application should be a command line app as a GUI is not needed.

However, when an application is using Core Data it should be the only application accessing that file on the disk. Therefore it appears that I need a way to determine whether the helper application is running or not. If I am wrong at this point, please let me know!

My first thought is when either the GUI app starts up or the helper starts up they check to see if the other is running. This seemed a little low level to me and might run into an issue of two people using the app on the same computer.

The second thought was to use distributed notifications between the applications. Have each register for events and then they "ping" each other to see if the other is running. This solution seems a little fragile to me.

Ideally, and I am not even sure if this is possible, is if the helper application could handle ALL of the core data manipulation (have references to the context, be responsible for saving etc.) and have the main application hook into it if it is already running or fire it up and hook into it if it is not. However this solution seems more complex than necessary.

Are there any paths I am missing?

Marcus S. Zarra
Zarra Studios LLC
http://www.zarrastudios.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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:
    • OT: socket question
      • From: Ondra Cada <email@hidden>
    • Re: Design question
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: Converting C strings into NSStrings (and vice versa)
  • Next by Date: NSActionCell mouseEntered crashes application
  • Previous by thread: Re: Converting C strings into NSStrings (and vice versa)
  • Next by thread: Re: Design question
  • Index(es):
    • Date
    • Thread