Re: WOPopUpButton
Re: WOPopUpButton
- Subject: Re: WOPopUpButton
- From: "Sigurður E. Vilhelmsson" <email@hidden>
- Date: Sat, 23 Jun 2007 10:23:09 +0000
OK, a quick Java lesson required :)
What is the difference between the two, i.e. what is the top line
trying to do, that the bottom one skips?
ec = ((Session)session()).defaultEditingContext()
and
ec = session().defaultEditingContext()
Just trying not to be a code monkey, I want to understand what I am doing :)
Sigurdur
2007/6/22, Miguel Arroz <email@hidden>:
Hi!
Are you sure you are including the right include for Session?
Anyway, you may write only ec = session().defaultEditingContext(),
without the type conversion, because the WOSession superclass has the
defaultEditingContext method.
Yours
Miguel Arroz
On 2007/06/22, at 18:15, Sigurður E. Vilhelmsson wrote:
> Sorry to stray back to the original topic :P but I'm getting an error
> in my java file. I used the code from David:
>
> public NSArray allCourseDescription() {
> EOEditingContext ec = ((Session)session
> ()).defaultEditingContext();
> return EOUtilities.objectsForEntityNamed(ec,
> "CourseDescription");
> }
>
> (I figured the extra space and s in allCourseDescription s() were a
> typo)
>
> However, now I get an error complaining that "Session cannot be
> resolved to a type".
>
> Best regards,
> Sigurdur
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40guiamac.com
>
> This email sent to email@hidden
Miguel Arroz
http://www.terminalapp.net
http://www.ipragma.com
_______________________________________________
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