Basic knowledge again

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

change the method name to changeTheValue_(theValue) and it should work in ASOBJC you should use method names like this:

simpleMethod()
methodWithParemeter_(param1)
methodWithParameter_andSecondParameter_(param1, param2)

Thank you DJ,
it helped.