• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
very newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

very newbie question


  • Subject: very newbie question
  • From: Manuel Grau <email@hidden>
  • Date: Thu, 01 Oct 2009 23:39:04 +0200

Hi. I'm a very newbie iphone and cocoa developer coming from j2ee world. I'm creating an application with four screens using a TabBar. The fourth view has a button wich uses UITextfields values from all the views to calculate something ans show the result in a UITextfield in the fourth view. This is my App Delegate:

@interface MyAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> {
UIWindow *window;
UITabBarController *tabBarController;
UIViewController *firstViewController;
UIViewController *secondViewController;
UIViewController *thirdViewController;
UIViewController *fourthViewController;
}


@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (nonatomic, retain) IBOutlet UIViewController *firstViewController;
@property (nonatomic, retain) IBOutlet UIViewController *secondViewController;
@property (nonatomic, retain) IBOutlet UIViewController *thirdViewController;
@property (nonatomic, retain) IBOutlet UIViewController *fourthViewController;


@end

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?
_______________________________________________


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


  • Follow-Ups:
    • Re: very newbie question
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSValueTransformer problem with NSTextField update
  • Next by Date: CAKeyframeAnimation for 'position' not working
  • Previous by thread: Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
  • Next by thread: Re: very newbie question
  • Index(es):
    • Date
    • Thread