• 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: a smaall question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a smaall question


  • Subject: Re: a smaall question
  • From: Kushnir Gennady <email@hidden>
  • Date: Thu, 18 Aug 2005 13:56:04 +0400

You can get your variable using NSKeyValueCoding interface:

variable = (variableClass)session().valueForKey("variableName");

 or NSKeyValueCodingAdditions:

variable = (variableClass)valueForKeyPath("sesion.variableName");

reading API is cool :)
file:///Developer/Documentation/WebObjects/Reference/API/index.html

Regards
Gennady

On 18.08.2005, at 13:23, Amedeo Mantica wrote:

I have a variable declared in my Session.java

when I need to access it i need alway to prepend "((Session)session ())".... ok

But the is another method to do this.... some times some funcions become log and confusive... only ((Session)session()) are six brackets.... :=)

Thanks and best regards
Amedeo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
408ka.mipt.ru


This email sent to email@hidden


_______________________________________________ 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: 
 >a smaall question (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: AW: a smaall question
  • Next by Date: Re: AW: a smaall question
  • Previous by thread: Re: AW: AW: a smaall question
  • Next by thread: Update Tomcat installer...
  • Index(es):
    • Date
    • Thread