• 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
Re: How to concatenate two values?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to concatenate two values?


  • Subject: Re: How to concatenate two values?
  • From: Cameron Hayne <email@hidden>
  • Date: Fri, 08 Apr 2005 14:11:07 -0400

On 3/3/05 7:35 AM, "Ronald Hofmann" <email@hidden> wrote:

> NSCalendarDate *now=[NSCalendarDate calendarDate];//this is a date
> value
> NSString *myPath = NSHomeDirectory();//this is a string value
>
> I want to concatenate both values.
>
> Something like "myString= myPath&now;" but this does not work because
> of the diffenrent types.
>
> I can“t find how to do this. Any hints out there?

Look in the documentation for NSCalendarDate (and its superclasses) for
methods that will produce an NSString.
Or look for methods in the NSString class for methods that will produce an
NSString from various components (hint: look for the word "format").
The 3rd-party AppKido will help you a lot.
Another idea is to search the cocoadev archives to find cases where similar
questions have been asked in the past. Possible search term: "concatenate"

--
Cameron Hayne (email@hidden)
Hayne of Tintagel

 _______________________________________________
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

  • Prev by Date: Ordered lists WAS ADC Core Data article
  • Next by Date: NSDate dateWithNaturalLanguageString:
  • Previous by thread: Re: NSSplitView
  • Next by thread: NSDate dateWithNaturalLanguageString:
  • Index(es):
    • Date
    • Thread