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: Initializing controls



Gorjan Todorovski wrote:
| I am making an Cocoa based app using Java. I need to init some controls
| (like NSPopUpButton) with some values when the application starts.
| Where in the class in what method do I do this since it seems it cannot
| be done in the constructor of the controller class of the app?

It depends on what you mean by "init some controls" and whether the controls are one you're creating from scratch or ones that are loaded from a nib file.

If you're creating them from scratch, then you can just call the appropriate attribute-setting methods. If they're from a nib file, the control's "awakeFromNib" method is called after the entire window has been loaded.

Glen Fisher
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Initializing controls (From: Gorjan Todorovski <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.