views:

18

answers:

1
A: 

You need to format your input better....

But your issue is you defined the method incorrectly

-(id)initWithPosessionName: (NSString *)pName valuesInDollars:(int)valueserialNumber:(NSString *)sNumber

that should be

-(id)initWithPosessionName: (NSString *)pName valueInDollars:(int)valueserialNumber:(NSString *)sNumber

You had an extra 's'

I can almost guarantee Xcode was giving you warnings about this. In Objective-C warnings are generally going to cause you runtime crashes, such as this. It is a good habit to clean up all your warnings before giving up on an issue.

Joshua Weinberg
Don't want to be a smart ass but it's the definition of the method, not the declaration.
Nikolai Ruhe
Thanks Joshua. I knew it was as simple as a typo - Good spotting! I do and try to take heed of warnings yet if I don't know what they're pointing at it doesn't help. I fixed up the typos but now I get another couple of warnings and it spits the dummy at -(NSString *)description { NSString *descriptionString = [[NSString alloc] initWithFormat:@"%@ (%@): Worth $%@, Recorded on %@", posessionName, serialNumber, valueInDollars, dateCreated]; return descriptionString; }(Object out of scope)The problem is I'm not even calling the description method
BernardH
@Nikolai, of course, my bad. Edited to fix.
Joshua Weinberg