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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]