I have to learn somethings from the beginning again.
Lesson 0:
script AppDelegate
property parent : class "NSObject"
on sendSomething_(sender)
current application's ASClass's changeTheValue(123)
end sendSomething_
on applicationWillFinishLaunching_(aNotification)
end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender)
return current application's NSTerminateNow
end applicationShouldTerminate_
end script
script ASClass
property parent: class "NSObject"
on changeTheValue(theValue)
log theValue
end changeTheValue
end script
error: +[ASClass changeTheValue]: {} doesn’t match the parameters {theValue} for changeTheValue. (error -1721)
Who can make it to work?
Heiner