• 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: NSMutableDictionary autorelease chrashes application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary autorelease chrashes application


  • Subject: Re: NSMutableDictionary autorelease chrashes application
  • From: "Michael Ash" <email@hidden>
  • Date: Sat, 19 Jul 2008 09:19:20 -0400

On Fri, Jul 18, 2008 at 11:52 PM, Andy Lee <email@hidden> wrote:
>> The only unusual thing Cocoa does with it is allow
>> multiple owners.
>
> I'm confused by this statement.  Take that simple C++ String class again.
>  If you have:
>
>    String a = "aaa";
>    String b = a;
>    String c = a;
>
> ...don't a, b, and c all own the underlying char buffer?  (And yes, a char
> buffer isn't an object, but that's what the article you linked to is
> referring to when it mentions ownership.)

Sure, I just said that Cocoa was unusual in this respect, not that
it's unique. You can find other refcounting schemes in use, both
automatic (as in this case) and manual (CoreFoundation, KHTML, CORBA
[I think]). But they're rare compared to the pervasiveness of
straight-up new/delete systems.

Mike
_______________________________________________

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: 
 >NSMutableDictionary autorelease chrashes application (From: Matthias Arndt <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: Andy Lee <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: j o a r <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: Andy Lee <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: "Michael Ash" <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: Andy Lee <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: "Michael Ash" <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: Andy Lee <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: "Michael Ash" <email@hidden>)
 >Re: NSMutableDictionary autorelease chrashes application (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: setting image for person in address book
  • Next by Date: Re: WebView load background color.
  • Previous by thread: Re: NSMutableDictionary autorelease chrashes application
  • Next by thread: Re: NSMutableDictionary autorelease chrashes application
  • Index(es):
    • Date
    • Thread