• 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: Proper use of representedObject in segues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper use of representedObject in segues


  • Subject: Re: Proper use of representedObject in segues
  • From: Mike Abdullah <email@hidden>
  • Date: Sun, 30 Nov 2014 19:53:56 +0000

> On 30 Nov 2014, at 19:17, Mikael Wämundson <email@hidden> wrote:
>
> Hi,
>
> I understand that when preparing for segue and sending information to the ViewController of the PopUp, Sheet, etc. I should make use of the representedObject of that ViewController.
>
> So far, so good.
>
> What, however, if I want to send information back to my parent view? Is the proper way to make use of the representedObject of the presentingViewController?

Typically, as part of the segue preparation, you hook the source VC up to be the delegate of the presented VC, and they communicate that way.


_______________________________________________

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: 
 >Proper use of representedObject in segues (From: Mikael Wämundson <email@hidden>)

  • Prev by Date: Proper use of representedObject in segues
  • Next by Date: Re: Predicate Row Template array within array
  • Previous by thread: Proper use of representedObject in segues
  • Next by thread: Xcode 6.1 - IB giving constraints warnings
  • Index(es):
    • Date
    • Thread