Theocacao
Leopard
Design Element
Comment on "Objective-C, Ruby and Python for Cocoa"
by Ivan — Feb 20
You're right, it is Smalltalk syntax. Or, more accurately, an improved Smalltalk syntax. Here is a nice example of dealing with collections in F-Script vs. Objective-C (putting some transparency in all of the app windows).

Objective-C 2.0:
for (NSWindow *window in [[NSApplication sharedApplication] windows]) { [window setAlphaValue:0.9]; }

F-Script:
NSApplication sharedApplication windows setAlphaValue:0.9

Isn't it nice?
Back to "Objective-C, Ruby and Python for Cocoa"
Design Element

Copyright © Scott Stevenson 2004-2015