Re: Tutorial
Re: Tutorial
- Subject: Re: Tutorial
- From: Gustavo Pizano <email@hidden>
- Date: Wed, 12 Mar 2008 19:06:29 -0500
Hello
Display Board: null Display Board: null
Thats the logging I get
BTW from where that DsiplayBoard() method its being called, I cant get it clear...
Gus
On Mar 12, 2008, at 6:49 PM, David LeBer wrote: On 12-Mar-08, at 7:39 PM, Gustavo Pizano wrote:
Here its the error
Display Board: null
Its more than clear that there is no displayDoard where to work at, so there is some problem with he constructor no?
Add logging to make sure this is being called:
public DisplayBoard displayBoard() { // only do this if we haven't already created one if (displayBoard == null) { // since we are using the default editing context we don't want to // just assume that the last code to use it saved all its changes. // A revert flushes out any unwanted data before we put ours in. session().defaultEditingContext().revert(); // as the name says - creates a new instance of DisplayBoard and // inserts it into the default editing context displayBoard = (DisplayBoard) EOUtilities.createAndInsertInstance( session().defaultEditingContext(), "DisplayBoard"); } NSLog.out.appendln("Display Board: " + displayBoard); <-- ADD THIS return displayBoard; }
Also: Compare your code (html, wod, java) against the completed tutorial source and look for differences.
;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