Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object specific behavior?




On Oct 25, 2007, at 3:00 AM, Frank Bettger wrote:

Long time ago I use to make simple programs using HyperCard. IMHO this is
the simplest programming environment ever created. There were some things I
was accustomed to and that I looked for in Cocoa.
Let's say I want to create a simple application with just one button. When
the user clicks on the button a beep should be heard.
In HyperCard (and in Macromedia Director) each object has attributes which
you can configure with an inspector. One of the attributes is a script
window where you can add object specific code. For instance to make the
button beep you would write


on mouseUp
   beep()
end mouseUp

It sounds like you want to investigate AppleScript Studio then (which is, of course, a different mailing list).



Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Object specific behavior? (From: "Frank Bettger" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.