• 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: RE Little starter help with instance and action of a WOConponent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE Little starter help with instance and action of a WOConponent


  • Subject: Re: RE Little starter help with instance and action of a WOConponent
  • From: Paul Lynch <email@hidden>
  • Date: Fri, 18 Aug 2006 17:51:24 +0100


On 18 Aug 2006, at 16:58, email@hidden wrote:

It's the problem. WebObjects don't acces directly the instance variable but the getter and setter methods. Just look at the error message that explains you webobjects try to find the right method .

This isn't correct.

WebObjects can access in a component bindings both instance variables and methods, regardless of access (private/public/protected). This is logical, for two reasons:

- key value coding knows to looks up methods and instance variables;
- component bindings are resolved by methods inherited from the superclass, WOComponent, which can see the values regardless of access privileges.


The most likely problem, as you say in a later email, is using the wrong target.

Paul
_______________________________________________
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: RE Little starter help with instance and action of a WOConponent
      • From: email@hidden
References: 
 >Re: RE Little starter help with instance and action of a WOConponent (From: email@hidden)

  • Prev by Date: Re: whywebobjects.org - WWDC followup [and URLs]
  • Next by Date: Re: RE Little starter help with instance and action of a WOConponent
  • Previous by thread: Re: RE Little starter help with instance and action of a WOConponent
  • Next by thread: Re: RE Little starter help with instance and action of a WOConponent
  • Index(es):
    • Date
    • Thread