Re: Direct To Cocoa App, or How Does D2WContext Work Anyway? (Somewhat OT)
Re: Direct To Cocoa App, or How Does D2WContext Work Anyway? (Somewhat OT)
- Subject: Re: Direct To Cocoa App, or How Does D2WContext Work Anyway? (Somewhat OT)
- From: Ramsey Gurley <email@hidden>
- Date: Sat, 03 Mar 2012 17:25:05 -0700
On Mar 3, 2012, at 11:46 AM, Amy Worrall wrote:
> Thanks Ramsey, that's very helpful.
>
> So in this code:
>
>
> EditPageInterface ep =
> D2W.factory().editPageForEntityNamed(entityName, session());
> ep.setObject(eo);
>
>
> Then the D2W factory will have created the D2WContext and pushed
> entityName onto it, before handing it to the page?
>
> And since setObject is called directly on the page, the D2WContext
> never has anything to do with the object?
>
>
> Thanks,
>
> Amy
In that specific case, the ERD2WFactory pushes the pageConfiguration, and the ERD2WPage pushes the object. You can see what's going on in the source of those two classes.
Ramsey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden