• 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: init with parameters for objects in interface builders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: init with parameters for objects in interface builders


  • Subject: Re: init with parameters for objects in interface builders
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 15 Oct 2002 14:16:41 +0200

On Tuesday, October 15, 2002, at 08:56 , Louis Foucart wrote:

I have few custom classes in my project which are specified in interface builder. The problem is that I need some parameters to initialize some objects. How can I specify parameters for the initialization of objects created in interface builder ?

Never is a class completely declared ("specified") in IB. IB just helps you making a template, which you then edit in PB.

Matter of factly, the complete IB "class design" ability is good for shows,
not for real work. Create your classes completely in PB and ignore the IB thing; you'll get (among many others) these advantages:

- you can use real classes ("IBOutlet NSTextField *ff") instead of just ids;
- you can put more outlets in one line ("id a,b,c") whenever appropriate;
- you can sort outlets and actions the way you want them, not the way IB wants them;
- you can add comments...
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
References: 
 >init with parameters for objects in interface builders (From: Louis Foucart <email@hidden>)

  • Prev by Date: NSTableColumn resize
  • Next by Date: Re: How to avoid a Windows interface on OS X?
  • Previous by thread: init with parameters for objects in interface builders
  • Next by thread: Re: init with parameters for objects in interface builders
  • Index(es):
    • Date
    • Thread