Fairly newbie question on strings
Fairly newbie question on strings
- Subject: Fairly newbie question on strings
- From: Mike Abdullah <email@hidden>
- Date: Fri, 27 Jan 2006 00:47:47 +0000
I have sort of 2 questions to do with strings. Say I have a string
nameOfToday that the program has previously filled with the name of
todays date. I then want to create a string from this that says
something like:
Today is Monday.
So I need to get the first bit of string: "Today is "
Add on to it nameOfToday
And then append on to that "."
What would be the best way of achieving this? I am looking at
stringWithFormat of NSString. Would this be the best choice?
My other question is that if I do use this method, is the string that
it returns autoreleased? I see no mention of this in the
documentation, so I'm wondering if I'd have to manually autorelease
it myself.
Thanks,
Mike A.
_______________________________________________
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