• 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
Re: how to evaluate an NSString content as a real obj-c instruction/expression
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: how to evaluate an NSString content as a real obj-c instruction/expression
  • From: Philippe Mougin <email@hidden>
  • Date: Fri, 15 Jul 2005 00:37:57 +0200

Jordan Krushen wrote:

>On 7/14/05, Sbastien Cotillard <<email_removed>> wrote:

>> 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.
>> Or in another words, Obj-c 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.
>
> I haven't looked at it in a while, but you may want to check out
> F-Script for a pseudo-Obj-C experience:
>  http://www.fscript.org/

Right, you can embed an F-Script interpreter in your Objective-C app very easily. F-Script is an open source scripting language specifically designed for Objective-C. Therefore it lets you access Objective-C frameworks and your own objective-C objects and might provide what you want. The article "Embedding F-Script into Cocoa Applications" at http://www.macdevcenter.com/pub/a/mac/2002/07/12/ embed_fscript.html will show you how you can embed an F-Script interpreter in your application and execute code stored in a string.

Best,

Philippe Mougin




_______________________________________________ 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
  • Prev by Date: Attachable and observable patterns
  • Next by Date: Re: Attachable and observable patterns
  • Previous by thread: Re: how to evaluate an NSString content as a real obj-c instruction/expression
  • Next by thread: NSBrowser focus question
  • Index(es):
    • Date
    • Thread