• 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
Re: very newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: very newbie question


  • Subject: Re: very newbie question
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 1 Oct 2009 15:16:39 -0700


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 (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


References: 
 >very newbie question (From: Manuel Grau <email@hidden>)

  • Prev by Date: Re: Bad stardardUserDeafaults
  • Next by Date: Re: Making a opaque copy of an NSImage
  • Previous by thread: very newbie question
  • Next by thread: CAKeyframeAnimation for 'position' not working
  • Index(es):
    • Date
    • Thread