• 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: how to call a method that is in the Session class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to call a method that is in the Session class


  • Subject: Re: how to call a method that is in the Session class
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 22 Jun 2005 09:36:40 -0700

What did that show? It sounds to me like you are dealing with two different sessions.

Chuck


On Jun 22, 2005, at 8:31 AM, email@hidden wrote:

Hi folks,

My understanding is that I can call my own methods placed in the Session
class. I can use KVC to get at the variables stored in the session.
Strangely though, setting a variable's value in the session using KVC from
other classes appears to change the session variable's value within the
class where it is being set, but when another class gets the same
variable, the value seems to have returned to its initial value (that is,
the value to which the variable is set when it is initialized within the
constructor of the session). This looks to me like either the session is
being instantiated anew in the other class (although I never call new
WOSession()), or that I am misunderstanding something about KVC and
variable scope.


So, I decided to use getters and setters for this variable instead of KVC,
and then see what was happening to the variable.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >how to call a method that is in the Session class (From: email@hidden)

  • Prev by Date: how to call a method that is in the Session class
  • Next by Date: Re: Reusable WORollover...trying to make stateless...nonsynchronizing...
  • Previous by thread: how to call a method that is in the Session class
  • Next by thread: JFreechart permissions on Tiger Server
  • Index(es):
    • Date
    • Thread