• 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: Tutorial
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tutorial


  • Subject: Re: Tutorial
  • From: David LeBer <email@hidden>
  • Date: Wed, 12 Mar 2008 18:10:39 -0400


On 12-Mar-08, at 5:40 PM, Gustavo Pizano wrote:

Ok i dunno if I understand good, but as for teh 7 tips you post I think I following them, as for the line... well the veogen generated this

public DisplayBoard localInstanceIn(EOEditingContext editingContext) {
DisplayBoard localInstance = (DisplayBoard)EOUtilities.localInstanceOfObject(editingContext, this);
if (localInstance == null) {
throw new IllegalStateException("You attempted to localInstance " + this + ", which has not yet committed.");
}
return localInstance;
}


and I guess if I put the new line you suggest I must implement the newDisplayBoard (EOEditingContext) and formt here call the localInstanceIn()method which resieds int he _DisplayBoard class, which it looks for me like a singleton pattern.??

My mistake, the stock Veogen templates only generate a factory method that takes all of the required attributes:


public static DisplayBoard createDisplayBoard(EOEditingContext editingContext, ...required attributes... ) {
...
}


Just follow the tutorial.

The EOF Commandments are for reference only at this point, just be aware they exist. Both the Veogen templates and Janine's tutorial do the right thing.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________ 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
References: 
 >Tutorial (From: Gustavo Pizano <email@hidden>)
 >Re: Tutorial (From: David LeBer <email@hidden>)
 >Re: Tutorial (From: David LeBer <email@hidden>)
 >Re: Tutorial (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Tutorial
  • Next by Date: New WO Blog
  • Previous by thread: Re: Tutorial
  • Next by thread: Re: Tutorial
  • Index(es):
    • Date
    • Thread