Re: attempt to assign value to unknown key
Re: attempt to assign value to unknown key
- Subject: Re: attempt to assign value to unknown key
- From: Nathan Hampton <email@hidden>
- Date: Wed, 16 Feb 2005 20:50:30 -0800
This suddenly started happening to me, though in my case it's trying to
get the value. I first confirmed that the instance variable is public
(Note to Chuck: I re-typed it just to make sure). Then I changed it to
private and added accessors. Still no dice. I've cleaned the targets
both with Xcode's clean function and by deleting all the build products
manually, both before and after I put the accessors in. I'm starting
to get a touch frustrated, and I DON'T want to start this project over.
Help!
--NCH
On 31 Jul 2004, at 5:23 PM, Art Isbell wrote:
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.
_______________________________________________
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