• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to fill information to NSComboBox when window loads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to fill information to NSComboBox when window loads? (From: MP 09 <email@hidden>)
 >Re: How to fill information to NSComboBox when window loads? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: How to fill information to NSComboBox when window loads?
  • Next by Date: [newbie] unknown symbol __ZTVN...
  • Previous by thread: Re: How to fill information to NSComboBox when window loads?
  • Next by thread: [newbie] unknown symbol __ZTVN...
  • Index(es):
    • Date
    • Thread