• 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: Cocoa newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Cocoa newbie question
      • From: Koen van der Drift <email@hidden>
References: 
 >Cocoa newbie question (From: joseph <email@hidden>)

  • Prev by Date: Re: Design Principles
  • Next by Date: Re: Cocoa newbie question
  • Previous by thread: Cocoa newbie question
  • Next by thread: Re: Cocoa newbie question
  • Index(es):
    • Date
    • Thread