attribute is an array?
attribute is an array?
- Subject: attribute is an array?
- From: Amy Heavey <email@hidden>
- Date: Tue, 21 Jun 2011 12:48:40 +0100
Hi,
I'm trying to acccess a decimal attribute of an entity, and I can't
work out why it's not working. I'm using the code below;
NSString *price = [[product valueForKey:@"kitFee"] stringValue];
and I get this error:
2011-06-21 12:43:34.666 ishop[30901:10b] *** -[NSCFArray stringValue]:
unrecognized selector sent to instance 0xe74f030
kitFee is a decimal attribute, and I can successfully get string
attributes with this code, NSString *productName = [product
valueForKey:@"kitName"];
Does the error message mean that it's getting an array for kitFee when
it should be a value?
I've cleaned and rebuilt, and it's sticking at this line, but I just
can't see my error?
I'd appreciate any help,
Many Thanks
Amy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden