• 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: NSString initWithUTF8String - crazy retainCount with empty string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString initWithUTF8String - crazy retainCount with empty string


  • Subject: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 25 Mar 2007 00:39:35 +0100

Am 24.03.2007 um 17:31 schrieb Simon Strandgaard:
As a relatively unexperienced mac developer, I wrongly assumed that
NSString initWithUTF8String would return an unique instance.
I still don't master referencecounting and thus believed that having
a check to ensure things were good would help me to detect when
I had screwed up refcounting.  Long story.

You may be interested in http://www.latenightcocoa.com/ - it's a podcast about Cocoa programming and covers various topics. The latest one is on memory management. I'm obviously biased, but I think that podcast should clear up some of the questions about Cocoa memory management you may have, especially since it also contrasts Cocoa's memory management to traditional C memory management.


Would love to hear your opinion on it (off-list).

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >NSString initWithUTF8String - crazy retainCount with empty string (From: "Simon Strandgaard" <email@hidden>)
 >Re: NSString initWithUTF8String - crazy retainCount with empty string (From: mmalc crawford <email@hidden>)
 >Re: NSString initWithUTF8String - crazy retainCount with empty string (From: "Simon Strandgaard" <email@hidden>)
 >Re: NSString initWithUTF8String - crazy retainCount with empty string (From: mmalc crawford <email@hidden>)
 >Re: NSString initWithUTF8String - crazy retainCount with empty string (From: "Simon Strandgaard" <email@hidden>)

  • Prev by Date: Where can I find qmake?
  • Next by Date: Re: Where can I find qmake?
  • Previous by thread: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • Next by thread: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • Index(es):
    • Date
    • Thread