Re: Cocoa newbie question
Re: Cocoa newbie question
- Subject: Re: Cocoa newbie question
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 23 Jul 2004 16:20:13 -0600
On Jul 23, 2004, at 4:01 PM, joseph wrote:
Is-it possible to create a GUI object (interface Builder) dynamically
(a NSTextField for instance) ?
I have not found an object's method in the class ...
Yes, like this: (warning - written in Mail, untested, use at your own
risk, and all that)
NSTextField *newTextField = [[NSTextField alloc]
initWithFrame:NSMakeFrame(0, 0, 20, 40)];
[someSuperview addSubview:newTextField];
Since you claim to be a newbie, I will assume you are new to the list,
and so I will point out the archives as a source of information:
<
http://cocoa.mamasam.com/>
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.