Re: NEWBIE/TRTFM: identify objects created in IB
Re: NEWBIE/TRTFM: identify objects created in IB
- Subject: Re: NEWBIE/TRTFM: identify objects created in IB
- From: Isaac Sherman <email@hidden>
- Date: Thu, 08 Aug 2002 13:43:18 -0400
on 8/8/02 1:19 PM, the method -(id)email@hidden:(id) sender:@"ber";
returned:
>
I have a pane created in IB with 8 textfields. 4 are used as labels
>
and 4 are for text entry for a form.
>
There is also an Okay button. When a user clicks the Okay button I'd
>
like to read the strings from
>
the text entry textfields. I don't know how to go about that as I
>
don't know how to identify the textfields.
>
I suppose I could traverse all the objects in the pane and divine which
>
ones are relevant based on their
>
location. What am I overlooking?
Outlets. Make a class to handle the text fields (if you haven't already)
and add outlets for it. Preferably, using one class to handle the UI, and
another to handle the work (based on Appkit.h and Foundation.h
respectively).
>
On a related note I have not figured out how to add rows to an NSForm
>
pulled from the palette in IB (2.3 (v283)).
>
The operations I use for matrixes and popups don't seem to apply to
>
forms.
That seems odd (not being obviously able to add rows in IB). I'd just stick
to label/textfields, though addRow doesn't seem a bad bet; you may have
tried that already.
HTH,
--
Isaac Sherman
MotaSoft Software
http://homepage.mac.com/huperzoevs/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.