You are correct. Strictly speaking, it is only needed in that case. I tend to engage in a bit of PBP (Paranoia Based Programming) when I am not sure who is going to use the code. Better safe than hunting bugs.

Chuck


On Mar 8, 2007, at 3:08 AM, Jerry W. Walker wrote:

Hi, Timo & Chuck,

My understanding was that ensureAwakeInContext(context()) is only needed if you are going to invoke methods on the previous page, not if you are just going to return it, as in this example.

Regards,
Jerry

On Mar 8, 2007, at 3:44 AM, Timo Hoepfner wrote:


Am 07.03.2007 um 18:52 schrieb Chuck Hill:

    previousPage.ensureAwakeInContext(context());
    return previousPage;

You learn something new every day... I've never noticed the ensureAwakeInContext mehod and have been returning pages stored in a variable for years now without a problem. I guess it was pure luck it was working, wasn't it?

Timo


_______________________________________________
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/jerrywwalker% 40gmail.com

This email sent to [EMAIL PROTECTED]


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems

    [EMAIL PROTECTED]
    203 278-4085        office





--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
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]

Reply via email to