Cocoa Java and the GUI Lifecycle
i'm not sure this is the right forum to field this question but just in case, here goes:
i'm a java geek dipping my toe into cocoa<-->java bridge. i have a nice little app that reads a path in from NSUserDefaults which then loads data from that path and initialises some java object arrays for use throughout the controller class.
this is all dandy.
what i don't seem to be able to find is any documentation for is the lifecycle of a window or panel.
what i want is when the window is instantiated, i can feed it some text for it to populate some NSTextFields in a prefs window i've created (the strings that are read in from NSUserDefaults).
the problem in my lack of knowlege seems to be how can i address the GUI from the constructor before the GUI exists? do i need to do some ugly delay code that will check for window!=null?
any tidbits are welcome cause i'm tearing hair out here...
thanks
i'm a java geek dipping my toe into cocoa<-->java bridge. i have a nice little app that reads a path in from NSUserDefaults which then loads data from that path and initialises some java object arrays for use throughout the controller class.
this is all dandy.
what i don't seem to be able to find is any documentation for is the lifecycle of a window or panel.
what i want is when the window is instantiated, i can feed it some text for it to populate some NSTextFields in a prefs window i've created (the strings that are read in from NSUserDefaults).
the problem in my lack of knowlege seems to be how can i address the GUI from the constructor before the GUI exists? do i need to do some ugly delay code that will check for window!=null?
any tidbits are welcome cause i'm tearing hair out here...
thanks
Comments
thanks!