Re: Initialize and add Combo Box programmatically
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