• 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: Initialize and add Combo Box programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initialize and add Combo Box programmatically


  • Subject: Re: Initialize and add Combo Box programmatically
  • From: Steven Kramer <email@hidden>
  • Date: Tue, 11 Jan 2005 22:01:22 +0100


Op 11-jan-05 om 9:43 heeft Tan Dung Ho het volgende geschreven:

Hi All!
 Anybody know how to initialize and add Combo box programmatically at
the run time in Cocoa application writen Object-C without using
Interface Builder.
 Thanks a lot!


Add it to a containing view. Maybe the window's content view?

Something like [[[myWindow] contentView] addSubview: [[[NSComboBox alloc] initWithFrame: NSMakeRect (100, 100, 50, 24)] autorelease]]; should get you on your way.

Search Apple's documentation for the keywords addSubview and NSComboBox. This is pretty basic stuff.

Good luck!


Regards,

Steven Kramer

--
email@hidden
http://sprintteam.com/

_______________________________________________
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: 
 >Initialize and add Combo Box programmatically (From: Tan Dung Ho <email@hidden>)

  • Prev by Date: Re: Howto receive text notifications from NSFormCells in an NSForm
  • Next by Date: custom focus ring ?
  • Previous by thread: Initialize and add Combo Box programmatically
  • Next by thread: Advanced applescripting implementation
  • Index(es):
    • Date
    • Thread