Re: How to fill information to NSComboBox when window loads?
Re: How to fill information to NSComboBox when window loads?
- Subject: Re: How to fill information to NSComboBox when window loads?
- From: MP 09 <email@hidden>
- Date: Fri, 14 Oct 2005 12:37:53 +0530
I got better way to do that. That is awakeFromNib File. just use
void awakeFromNib()
{
//write here code to intailize the window.
}
On 10/14/05, Chris Hanson <email@hidden> wrote:
>
> On Oct 13, 2005, at 10:22 PM, MP 09 wrote:
>
> > I have a window and NSComboBox control on it. I want to fill
> > information in
> > that when window view or load. I am using java and cocoa.
> > I created a nib file which contain window and controller code in
> > java. I
> > though to write fill method in constructor, but it throw run time
> > error as
> > controls are not initialized yet. Is there any method which i can
> > use to
> > load that?
>
> When a nib file is loaded, all of the objects in it are unarchived or
> instantiated and connected together. Then all of the objects in the
> nib, as well as the object specified as the nib's owner, are sent -
> awakeFromNib. This is an appropriate place for any additional
> interface set-up work.
>
> -- Chris
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden