Re: How to concatenate two values?
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