Re: There must be a better way
Re: There must be a better way
- Subject: Re: There must be a better way
- From: David Duncan <email@hidden>
- Date: Wed, 23 Dec 2009 16:07:10 -0500
Is there a reason why your view so tightly bound to it's controller?
Typically you define a protocol for any object to respond to and
expose a delegate property to define that type of interface. Examples
of this are very common in AppKit and UIKit, such as NS/UITableView or
UIImagePickerController.
--
David Duncan @ My iPhone
On Dec 23, 2009, at 2:19 PM, Charlie Dickman <email@hidden>
wrote:
In an iPod Touch/iPhone app where the view is in 1 xib and it's
controller is in a different one, according to the view-controller-
data paradigm, is there a better way to link the view to the
controller than
[(myView *) [[self view] setController: self]
in the controller where "controller" has been declared
id controller;
.
.
.
@property (nonatomic, assign) id controller;
in myView.h with
synthesize controller in myView.m?
Charlie Dickman
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden