BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • how to evaluate an NSString content as a real obj-cinstruction/expression

    1 answers - 1062 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hmm, I'm no C expert but i doubt this is possible since obj-c is
    converted at compile time to binary code. PHP, Javascript,
    Actionscript, Perl, all have run time interpreters that how they are
    able to have an eval function.
    7/14/05, S Cotillard <sebosac (AT) wanadoo (DOT) frwrote:
    hello, I'm try here after find too less answer other where.
    I'm finding for a native method which can evaluate an expression such obj-c expression or math expression stored in NSString and from a file (text, xml) and it execute the result.
    in another words, can or not execute an "live text execution"
    with some data stored in a text or xml file without NStask, or external
    add-ons;
    an obj-c runtime's function like PHP "eval()"'s function.
    thanks.
    Do not post admin requests to the list. They will be ignored.
    Cocoa-dev mailing list (Cocoa-dev (AT) lists (DOT) apple.com)
    Help/Unsubscribe/Update your Subscription:
    %40gmail.com
    This email sent to iloveitaly (AT) gmail (DOT) com
  • No.1 | | 866 bytes | |

    You *could* however write a wrapper class that can run the PHP (or
    other) parser as an NSTask and fetch the results. You might want to
    look into this option. If you can do it on the command line, Cocoa's
    NSTask should let you do the same and use the results in your app.

    Jul 14, 2005, at 8:05 AM, Michael Bianco wrote:

    Hmm, I'm no C expert but i doubt this is possible since obj-c is
    converted at compile time to binary code. PHP, Javascript,
    Actionscript, Perl, all have run time interpreters that how they are
    able to have an eval function.

    Do not post admin requests to the list. They will be ignored.
    Cocoa-dev mailing list (Cocoa-dev (AT) lists (DOT) apple.com)
    Help/Unsubscribe/Update your Subscription:
    %40developershed.com

    This email sent to bsdarchive (AT) developershed (DOT) com

Re: how to evaluate an NSString content as a real obj-cinstruction/expression


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "BSD"

EMSDN.COM