Re: Problem with Currency Converter tutorial
Re: Problem with Currency Converter tutorial
- Subject: Re: Problem with Currency Converter tutorial
- From: Brian Smith <email@hidden>
- Date: Thu, 21 Jun 2007 12:35:18 -0600
On Jun 21, 2007, at 12:13 PM, Kevin Walzer wrote:
I'm trying to wire up the ConverterController object to the user-
interface elmements in the Currency Controller window. I followed
the instructions: choose attributes from the inspector window,
click 0 outlets, click add, and then add rateField, dollarField,
and amountField. I then added the "convert" action via the "Add
Action" menu. Finally, I connected the ControllerConverter instance
to the text fields.
After doing all this, I noticed that I had not added "convert" as
an outlet along with rateField, etc. So I backed up and tried to
select the "Outlets" tab in the inspector pane--but it won't let me
add a new outlet. Selecting each outlet only connects/disconnects
them from the ControllerConverter instance. I can't delete them and
start over, either. Also, the "classes" menu is disabled, so I
can't access it form there. As a result, I'm a bit stuck: how do I
go back and add the "convert" outlet without trashing the whole
project and starting over?
You can add the outlets in the class interface in Xcode's editor for
the class's header file, and then have IB re-parse the header
(Classes->Read Files..., or drag & drop the header to IB's nib
inspector panel) file to get it to recognize the new outlets in the
class. I prefer creating my classes in Xcode and the parsing the
header, instead of creating them in IB. Also, make sure the "Classes"
tab view is selected to enable the "Classes" menu items.
Brian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden