• 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: 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

  • Follow-Ups:
    • Re: Object Ownership
      • From: Graham Cox <email@hidden>
References: 
 >Object Ownership (From: Michael Jackson <email@hidden>)
 >Re: Object Ownership (From: Graham Cox <email@hidden>)

  • Prev by Date: NSDoc's Magic File Watcher Ruins Core Data Migration
  • Next by Date: Re: List of all supported apps for file type
  • Previous by thread: Re: Object Ownership
  • Next by thread: Re: Object Ownership
  • Index(es):
    • Date
    • Thread