• 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: attempt to assign value to unknown key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attempt to assign value to unknown key


  • Subject: Re: attempt to assign value to unknown key
  • From: Art Isbell <email@hidden>
  • Date: Sat, 31 Jul 2004 14:23:14 -1000

On Jul 31, 2004, at 2:09 AM, Amorya North wrote:

Reason:
  [<com.webobjects.appserver.WOComponent name: TabsForShows
subcomponents: null > takeValueForKey()]: attempt to assign value to
unknown key: 'showID'. This WOComponent does not have an instance
variable of the name showID or _showID, nor a method of the name
setShowID or _setShowID

The thing is, TabsForShows (the subcomponent I'm trying to call) _does_
have a key called showID.

This can occur if the showID instance variable isn't public and no public access methods exist. public instance variables don't support good object-oriented design, so a protected or private instance variable with public accessors is better.


Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >attempt to assign value to unknown key (From: Amorya North <email@hidden>)

  • Prev by Date: Re: Related to WO (a little)
  • Next by Date: Methods in Application Class
  • Previous by thread: attempt to assign value to unknown key
  • Next by thread: JavaDoc -> WODoc ??
  • Index(es):
    • Date
    • Thread