Re: crash question NSString
Re: crash question NSString
- Subject: Re: crash question NSString
- From: "Rick C." <email@hidden>
- Date: Sat, 5 Sep 2009 11:07:59 -0700 (PDT)
thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it,
rick
________________________________
From: Andy Lee <email@hidden>
To: Rick C. <email@hidden>
Cc: cocoa dev <email@hidden>
Sent: Saturday, September 5, 2009 11:38:31 PM
Subject: Re: crash question NSString
On Sep 5, 2009, at 10:55 AM, Rick C. wrote:
> i'm just looking for a confirmation here. if i'm getting this crash:
>
> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument'
>
> is it definitely crashing on my NSMutableString appendString: method or is it possible it's also crashing on NSString stringByAppendingString:? as far as i know either one will throw an exception that's why i'm asking. thank you,
If you're wondering whether that exact message is specific to one of the two cases, why not try both and find out?
[[NSMutableString string] appendString:nil]; // What message do you get?
[@"" stringByAppendingString:nil]; // What message do you get now?
--Andy
_______________________________________________
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