Re: Real simple newbie question(s)
Re: Real simple newbie question(s)
- Subject: Re: Real simple newbie question(s)
- From: Andreas Mayer <email@hidden>
- Date: Sat, 24 Jul 2004 02:32:55 +0200
Am 24.07.2004 um 01:40 Uhr schrieb Chris Griffin:
My first question is how do I get to that object to set the text?
You either use connections (all system versions) or bindings (10.3 and
up).
I don't think I fully understand your setup so it's difficult to be
more specific. Here is what I usually do:
- create some IBOutlet for the UI element in MainController.h
- drag the MainController.h file from Xcode to the nib's window in IB
- instantiate the controller in IB
- control-drag from the controller icon to the UI element
- connect the corresponding outlet
The outlet will now contain a reference to the UI element at runtime.
You might use bindings instead but I recommend you try outlets first.
For more information on bindings go to the ADC site and search for
"cocoa bindings".
Andreas
_______________________________________________
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.