Previously, I would have said the view-controller. But I just finished looking at the Metronome sample, which is included in the iPhone SDK. The touch handling code as well as some of the view initialization code (requiring a completely loaded view) is implemented in the UIView-derived class. Is this a bad example of how things should be partitioned or do I have the wrong idea about what the view-controller is for?

Here are some related follow-up questions:

1) What should be implemented in the view-controller?

2) Should all of the view properties be completely setup and configured within the view's own init and awakeFromNib methods or is the intent of viewDidLoad to allow for configuring view properties before proceeding?

Yeah, I'm confused.  Please discuss.  I will watch and learn.

-Michael
----------------------
The difference between genius and stupidity...
...is that genius has its limits."

-- Albert Einstein



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to