forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c808c7d
Showing
439 changed files
with
83,188 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.pbxproj -crlf -diff -merge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# xcode noise | ||
build/* | ||
*.pbxuser | ||
*.mode1v3 | ||
|
||
# old skool | ||
.svn | ||
|
||
# osx noise | ||
.DS_Store | ||
profile |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* FSDemoController.h Copyright (c) 2007 Philippe Mougin. */ | ||
/* This software is open source. See the license. */ | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import "FSInterpreterView.h" | ||
|
||
|
||
@interface FSDemoAssistant : NSObject | ||
{ | ||
IBOutlet FSInterpreterView *interpreterView; | ||
NSTextView *loadImage; | ||
NSTextView *displayImage; | ||
NSTextView *lockFocus; | ||
NSTextView *perspective; | ||
NSTextView *hueAdjust; | ||
NSTextView *bump; | ||
NSTextView *bumpAnimate; | ||
} | ||
|
||
@property (retain) IBOutlet NSTextView *loadImage; | ||
@property (retain) IBOutlet NSTextView *displayImage; | ||
@property (retain) IBOutlet NSTextView *lockFocus; | ||
@property (retain) IBOutlet NSTextView *perspective; | ||
@property (retain) IBOutlet NSTextView *hueAdjust; | ||
@property (retain) IBOutlet NSTextView *bump; | ||
@property (retain) IBOutlet NSTextView *bumpAnimate; | ||
|
||
- (void)activate; | ||
- (id)initWithInterpreterView:(FSInterpreterView *)theInterpreterView; | ||
- (IBAction)loadCode:sender; | ||
- (void)putCommand:(NSString *)command; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* FSDemoController.m Copyright (c) 2007 Philippe Mougin. */ | ||
/* This software is open source. See the license. */ | ||
|
||
#import "FSDemoAssistant.h" | ||
#import "FSNSString.h" | ||
|
||
|
||
@implementation FSDemoAssistant | ||
|
||
@synthesize loadImage; | ||
@synthesize displayImage; | ||
@synthesize lockFocus; | ||
@synthesize perspective; | ||
@synthesize hueAdjust; | ||
@synthesize bump; | ||
@synthesize bumpAnimate; | ||
|
||
- (void)activate | ||
{ | ||
if (![NSBundle loadNibNamed:@"DemoAssistant" owner:self]) | ||
{ | ||
NSLog(@"Failed to load DemoAssistant nib file"); | ||
NSBeep(); | ||
return; | ||
} | ||
} | ||
|
||
- (void) dealloc | ||
{ | ||
[interpreterView release]; | ||
[super dealloc]; | ||
} | ||
|
||
- (id)initWithInterpreterView:(FSInterpreterView *)theInterpreterView | ||
{ | ||
self = [super init]; | ||
if (self != nil) | ||
{ | ||
interpreterView = [theInterpreterView retain]; | ||
} | ||
return self; | ||
} | ||
|
||
|
||
|
||
- (IBAction)loadCode:sender | ||
{ | ||
[self putCommand:[[self performSelector:NSSelectorFromString([sender title])] string]]; | ||
} | ||
|
||
- (void)putCommand:(NSString *)command | ||
{ | ||
NSArray *fragments = [command componentsSeparatedByString:@" "]; | ||
|
||
for (unsigned int i = 0, n = [fragments count]; i < n; i++) | ||
{ | ||
[interpreterView putCommand:[fragments objectAtIndex:i]]; | ||
[interpreterView putCommand:@" "]; | ||
[interpreterView display]; | ||
[NSThread sleepUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.05]]; | ||
} | ||
[[interpreterView window] makeKeyWindow]; | ||
} | ||
|
||
@end |
Oops, something went wrong.