• 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 19:49:53 -0400


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

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