• 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: Object Ownership
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Object Ownership (From: Michael Jackson <email@hidden>)
 >Re: Object Ownership (From: Graham Cox <email@hidden>)
 >Re: Object Ownership (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: nsprogressindicator change color
  • Next by Date: Re: Suppressing visibility in the Dock
  • Previous by thread: Re: Object Ownership
  • Next by thread: [Moderator] Behavior on the list and off.
  • Index(es):
    • Date
    • Thread