• 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
attribute is an array?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: attribute is an array?
      • From: Fritz Anderson <email@hidden>
    • Re: attribute is an array?
      • From: Roland King <email@hidden>
  • Prev by Date: Agent that displays a window with textbox
  • Next by Date: Re: attribute is an array?
  • Previous by thread: Re: Agent that displays a window with textbox
  • Next by thread: Re: attribute is an array?
  • Index(es):
    • Date
    • Thread