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: Attaching actions to buttons



Button are generally attached to actions in Interface Builder. Make sure the class has an instance in IB and then just control drag from the button to the instance and select the action you want to connect to. I'm sure there is a way to do it in code but unless the action needs to change mid program why do it the hard way.

Mike

"The Ego is the little self that pretends to be the only self and speaks so loudly that the still, small voice of the Greater Self, whose whisperings come from within the Soul, are rarely heard - unless we learn to listen."
On Jan 26, 2005, at 2:21 PM, email@hidden wrote:


Date: Tue, 25 Jan 2005 21:52:22 -0800
From: dor kelman <email@hidden>
Subject: Attaching actions to buttons
To: <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain;	charset="US-ASCII"

I went through the online tutorials on how to use xcode and interface
builder and the example they had was the temperature converter. It was
useful but the main thing I wanted to learn was how to attach the buttons to
actions. The code was already supplied and all I had to do was copy and
paste. I cant figure out from the code exactly how to use the number tags.
Is there anyone out there with a simple explanation on the rules and
techniques to doing this?



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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.