Re: Proper use of representedObject in segues
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