Re: NSString / NSURL
Re: NSString / NSURL
- Subject: Re: NSString / NSURL
- From: Roland King <email@hidden>
- Date: Sun, 29 Aug 2010 16:27:20 +0800
and when you look at the documentation for that method it was available starting with which OS version?
convert your NSURL into an NSString, then use stringByAppendingPathComponent and convert it back to an NSURL again. Or use the string-based file methods instead.
On 29-Aug-2010, at 4:22 PM, Amy Heavey wrote:
> 10.5 i386,
>
> On 29 Aug 2010, at 9:21AM, Roland King wrote:
>
>> What OS are you building for?
>>
>> On 29-Aug-2010, at 4:14 PM, Amy Heavey wrote:
>>
>>> I still get an error:
>>>
>>> 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL URLByAppendingPathComponent:]: unrecognized selector sent to instance 0xc6356a0
>>> 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL URLByAppendingPathComponent:]: unrecognized selector sent to instance 0xc6356a0
>>>
>>> Many Thanks
>>>
>>> Amy
>>>
>>>
>>>
>>> On 28 Aug 2010, at 4:08PM, David Duncan wrote:
>>>
>>>> On Aug 28, 2010, at 8:04 AM, Amy Heavey wrote:
>>>>
>>>>> Sorry duh!
>>>>>
>>>>> 2010-08-28 15:55:27.961 ishop[1920:10b] *** -[NSURL stringByAppendingPathComponent:]: unrecognized selector sent to instance 0x16fbe0
>>>>> 2010-08-28 15:55:27.961 ishop[1920:10b] *** -[NSURL stringByAppendingPathComponent:]: unrecognized selector sent to instance 0x16fbe0
>>>>
>>>> defaultImageLocation is an NSURL* (because thats what you created at the top of the method). You want to use -URLByAppendingPathComponent: with it.
>>>> --
>>>> David Duncan
>>>>
>>>> _______________________________________________
>>>>
>>>> Cocoa-dev mailing list (email@hidden)
>>>>
>>>> Please do not post admin requests or moderator comments to the list.
>>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>>
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>> _______________________________________________
>>>
>>> Cocoa-dev mailing list (email@hidden)
>>>
>>> Please do not post admin requests or moderator comments to the list.
>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden