• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Object specific behavior?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object specific behavior?


  • Subject: Re: Object specific behavior?
  • From: glenn andreas <email@hidden>
  • Date: Thu, 25 Oct 2007 10:48:12 -0500


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:
This email sent to email@hidden


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

  • Prev by Date: User Prompt Before New Document Window
  • Next by Date: Re: Transparent window and opaque objects
  • Previous by thread: Re: Object specific behavior?
  • Next by thread: Re: Object specific behavior?
  • Index(es):
    • Date
    • Thread