Re: how to evaluate an NSString content as a real obj-c instruction/expression
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: Erik Buck <email@hidden>
- Date: Thu, 14 Jul 2005 07:02:23 -0700 (PDT)
One solution is available in the presentation I made at MacHack in 2002,
"JIT Objective-C."
http://www.hax.com/MacHack/HackBallot2002.html
This technique accepts arbitrary Objective-C code entered by a user, compiles it on the fly, and links it into a running application. The hack includes an interface builder application that lets you evaluate arbitrary code in test interface mode of Interface Builder. For example, you can create an object, add action methods to it, implement the action methods right inside IB, connect to the actions, run in test interface mode, rinse & repeat.
As I recall, the example presented at the hack included some string processing and the creation of a basic calculator application entirely in IB with no use of Project Builder. I am told that one reason the hack may not have won the contest is that the hack is actually useful, and that is discouraged L
_______________________________________________
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