Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Real simple newbie question(s)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Real simple newbie question(s)



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.


References: 
 >Real simple newbie question(s) (From: Chris Griffin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.