Re: Object Ownership
Re: Object Ownership
- Subject: Re: Object Ownership
- From: Graham Cox <email@hidden>
- Date: Mon, 24 May 2010 22:17:41 +1000
On 24/05/2010, at 12:22 PM, Ken Thomases wrote:
> On May 23, 2010, at 7:34 PM, Graham Cox wrote:
>
>> What I don't understand is why you make the copy.
>>
>> [NSURL URLWithString] doesn't require a mutable string, it requires a string, so your whole method could be reduced to:
>
> He does have a comment ("do some stuff with aCopy here") indicating that he's going to do something else with the copy between making it and passing it into +URLWithString:.
Ah, missed that! I guess I have the habit of reading the code and ignoring the comments... ahem.
--Graham
_______________________________________________
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