Learning Cocoa/ObjectiveC and wondering why I had to do this.
Learning Cocoa/ObjectiveC and wondering why I had to do this.
- Subject: Learning Cocoa/ObjectiveC and wondering why I had to do this.
- From: Tom Boucher <email@hidden>
- Date: Sun, 6 Mar 2005 17:20:03 -0500
Can you translate this for me?
NSString *result = [NSString stringWithFormat:@"%@ has %u letters.",string,letterCount];
It did what I wanted, which was create a string that is the results of a string, an unsigned int and some other words and put them in there.
But it didn't do it the way I thought I should. I can't figure out why I had to put the NSString inside the object call [NSString stringWithFormat...]
Was doing the challenge in that one Big Nerd Ranch cocoa book and got lost a bit.
My C skills are rusty, it's been a few years. So I apologize for the blatant newb post.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden