• 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: Expression parsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expression parsing


  • Subject: Re: Expression parsing
  • From: Mike Ferris <email@hidden>
  • Date: Sat, 24 Jul 2004 08:43:00 -0700

You may be thinking of MOKit (at
http://www.lorax.com/FreeStuff/MOKit.html) which has a couple classes
for this:

MORegularExpression - a basic regular expression object
MORegexFormatter - an NSFormatter that validates input based on a set
of MORegularExpressions

Or perhaps you are thinking of the (somewhat) MPW worksheet-like
feature in TextExtras that allows executing selected text in a Cocoa
text object as a shell command and having the output of the script
inserted in the text?

Mike


Begin forwarded message:

> From: Public Look <email@hidden>
> Date: July 18, 2004 4:14:25 PM PDT
> To: Cocoa List <email@hidden>
> Subject: Re: Expression parsing
>
> I think Mike Ferris's TextExtras includes the support for entering
> expressions into any text fiel, but I may be mis-remebering.
>
> http://www.lorax.com/FreeStuff/TextExtras.html
>
> There are lots of cool things that can be done. You can include TCL
> or Python expression handling (or the whole langiuages for that
> matter) in any text field.
>
> One of my company's products includes a partial C interpreter that
> works with any NSTextView including the field editor that text fields
> use.
>
> I demonstrated a "Just In Time" JIT C compiler at Mac Hack a few years
> ago and the source code should still be on their site. With this, you
> can type in any legal C function body including the use of math.h and
> constants like PI and it will be "recompiled" in less time than it
> takes to move the mouse to another user interface control. It has
> automatic support for action messages so it can be connected in-line.
> For example, type in a simple equation with four variables, math
> functions and constants, a call to sprintf to compose strings or
> whatever. Then connect sliders or text fields up so the variables
> -takeFloatValueFrom
> : the other user interface controls. Connect still other variables in
> the code to other controls using outlets. Then, as you move the
> sliders that control inputs, the little C program is executed over and
> over sending the outputs to other controls like text fields...
>
> Finally, I think Building Cocoa Applications : A Step by Step Guide
> by Simson Garfinkel, Michael K. Mahoney includes a "Math Paper"
> example that demonstrated expression parsing and function graphing.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Expression parsing (From: Mario Diana <email@hidden>)
 >Re: Expression parsing (From: Public Look <email@hidden>)

  • Prev by Date: Re: authopen or not
  • Next by Date: main nib, secondary nib, where do the outlets get connected to in the main nib?
  • Previous by thread: Re: Expression parsing
  • Next by thread: Re: Expression parsing
  • Index(es):
    • Date
    • Thread