On Oct 1, 2009, at 2:39 PM, Manuel Grau wrote:
I have my own controller classes for each view. The problem is that my IBAction method that receives button event is in fourthViewController, so I can't acces fields in the other views to get the values I need. So, which is the usual way to do this? Maybe, adding the button action receiver in MyAppDelegate?
If you need your objects in the nib to be able to call each other, add IBOutlets in those class's interfaces pointing to the other objects/ views they need to talk to, and wire them up in Interface Builder. At runtime those instance variables will point to the other objects.
In your case you would add some view outlets in whatever class of yours the fourthViewController is.
—Jens_______________________________________________ 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