Re: Object Ownership
Re: Object Ownership
- Subject: Re: Object Ownership
- From: Ken Thomases <email@hidden>
- Date: Sun, 23 May 2010 21:22:02 -0500
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:.
Regards,
Ken
_______________________________________________
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