Re: 2 Cocoa Method Questions
Re: 2 Cocoa Method Questions
- Subject: Re: 2 Cocoa Method Questions
- From: Ondra Cada <email@hidden>
- Date: Thu, 16 May 2002 13:17:32 +0200
On Thursday, May 16, 2002, at 05:58 , email@hidden wrote:
2) When creating new User Interfaces, and controller objects, should you
use
Project Builder to write the template of the controller you are creating
(usually subclass of NSObject)? You would then run Interface Builder, and
Read the .h file so that new class is available for Interface Builder to
c
reate an Instance of. When you want to add actions and outlets, you add
them
by hand to the .h file, and have Interface Builder re-read the file.
OR
Do you use Interface Builder to create a new subclass, add the needed
outlets
and actions using the Interface Builder UI, and then create the .h & .m
file
needed for this new object? You then load and compiled these new files
using
Project Builder.
The IB templating is very nice for quick tests and especially for
presentations -- it looks impressive to make an application without any
real coding ;)
In real life though, writing headers in PB having IB scan them afterwards
is much better, since it allows you to
- use real types ("IBOutlet NSTextField*" instead of "id");
- use comments;
- order properties the way you want to;
- exploit copy/paste.
IMHO the one nice touch this approach still lacks is automatic rescan like
WebObjectBuilder does; as soon it is there, it would be extremely handy.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.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.