Squeak is a program which let's you program Offline apps (There is a extension that let's you convert it to Java) But guess what's best... It's much easier to learn!
Download it hereSome thing have a text value in them.Squeak identifies them in code by (t1,t2,t3,t4 and so on)
Basics
DIFFICULTY:Easy
So for example
let's make a say "value" (the black code is say: aValue)
self bubble: aValue thinkFlag: false promptFlag: false.
Detecting OS's
DIFFICULTY:Advanced
Running Windows
Smalltalk isWindows
ifTrue: [^ true]
ifFalse: [^ false].
Running Linux
Smalltalk isUnix
ifTrue: [^ true]
ifFalse: [^ false].
^ self
Running Mac
Smalltalk isMacOSX
ifTrue: [^ true]
ifFalse: [^ false].
This is windows-only code