How to use popen() command

Discussion in 'iOS Programming' started by sachin.singh, Oct 20, 2008.

  1. sachin.singh macrumors newbie

    Oct 19, 2008

    i hav a problem using popen() command in iphone programming....:confused:

    Is it possible to open an MAIL application using popen() command in iphone development....If yes thn PLEASE help me for the needfull...

    Hope for anybody's reply soon...
    PLEASE its urgent coz i'm blocked up for this query since last 4dayzz....:(

    Thnks a lot...
    sachin :apple:
  2. nacho4d macrumors newbie

    Jul 13, 2008
    Please be more especific


    Could you be more specific? What do you mean with "a MAIL application"? and popen? if the problem is UNIX comands, maybe you can use NSTask.
    But, still I don't think this is the problem right? :confused:
  3. robbieduncan Moderator emeritus


    Jul 24, 2002
    I very much doubt that this will work on the iPhone, and even if it does it will not be accepted by Apple into the app store. The SDK agreement is exceptionally clear on the use of external binaries. I suggest you review the agreement carefully, especially section 3.3.2 which states:

    "An Application may not itself install or launch other executable code by any means"...
  4. sachin.singh thread starter macrumors newbie

    Oct 19, 2008
    hey thanks...nacho n robbiedencun for ur reply..:) problem is .."I want to open any application or an MAIL application in wat shell command can i prefer...if its POPEN command thn can u'al help me with some sample code...:apple:

    thank u...
  5. nacho4d macrumors newbie

    Jul 13, 2008
    Ass Robbie said

    I think Robbie is right,
    Third parties apps cannot access other applications rather than itself.
    Even tough you use UNIX commands, you probable will not have enough rights to access others apps.
    Maybe in jail braked ones you can achieve it but it will be only for you.

Share This Page