public
Description: A small sample application that defines a category of NSAppleEventDescriptor that will convert NSAppleEventDescriptors into normal Cocoa objects.
Homepage: http://www.fromconcentratesoftware.com/
Clone URL: git://github.com/Grayson/applescripttodictionarywithnutoo.git
Grayson Hansard (author)
Mon Apr 21 16:20:23 -0700 2008
100644 24 lines (18 sloc) 0.412 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// Controller.m
// ApplescriptToDictionaryWithNuToo
//
// Created by Grayson Hansard on 4/21/08.
// Copyright 2008 From Concentrate Software. All rights reserved.
//
 
#import "Controller.h"
 
 
@implementation Controller
 
- (IBAction)runNu:(id)sender
{
NSString *s = [textView string];
id nu = [Nu parser];
id ret = [nu eval:[nu parse:s]];
[nu close];
[resultView setString:[ret description]];
}
 
@end