• 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
Fairly newbie question on strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Fairly newbie question on strings
      • From: Joshua Scott Emmons <email@hidden>
  • Prev by Date: Re: NSCursor Resize Cursor
  • Next by Date: Re: Fix Depracated call in Apple Sample Code?
  • Previous by thread: NSObject's inverseForRelationshipKey: behavior
  • Next by thread: Re: Fairly newbie question on strings
  • Index(es):
    • Date
    • Thread