Re: init with parameters for objects in interface builders
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.