• 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: 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

  • Follow-Ups:
    • Re: how to evaluate an NSString content as a real obj-c instruction/expression
      • From: Nicko van Someren <email@hidden>
  • Prev by Date: Re: Widgets turning white and never unturning white?
  • Next by Date: Re: Drawing an NSImage into a GWorld
  • Previous by thread: Re: how to evaluate an NSString content as a real obj-c instruction/expression
  • Next by thread: Re: how to evaluate an NSString content as a real obj-c instruction/expression
  • Index(es):
    • Date
    • Thread