System Wide Flags...how to

Discussion in 'iOS Development' started by frankmarco, Sep 2, 2010.

  1. frankmarco

    frankmarco New Member

    Joined:
    Aug 20, 2010
    Messages:
    10
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    Hello,
    Can anyone tell me if there is a way to define and use a system wide flag?

    Here is what I would like to do:
    From inside my app, I would like to be able to set a flag of some type.
    Then from a custom mobile substrate dylib, I would like to be able to read this flag to have the dylib act accordingly.

    Thank You,
    Frank
  2. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    You mean like, preferences? -.-
  3. frankmarco

    frankmarco New Member

    Joined:
    Aug 20, 2010
    Messages:
    10
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    Hello GoJohnnyBoi,
    Thank you for replying to my message.

    Not really like preferences, at least I don't believe so.
    This would be more of a run time action.

    I looked at trying to do this via Unix IPC methods (for instance shared memory or named pipes) but unfortunately this would not work. Every time a mobile substrate dylib hook method was executed it would crash the phone and cause it to boot into the SpringBoard safe mode.

    Like I mentioned, I would like to be able to set some type of flag and then have the dylib hook method act based upon this flag being set or not.

    Any thoughts on how to do this?

    One very non-elegant solution, would be to have my app write to a file, and then have the dylib hook method open and read the file to see if the flag had been set.
  4. Pelaez-1

    Pelaez-1 New Member

    Joined:
    May 5, 2008
    Messages:
    822
    Likes Received:
    0
    Device:
    iPhone
    CPDistributedNotificationCenter.

    Dump the AppSupport framework.

Share This Page