• 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 Retain Count of 2147483647
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString Retain Count of 2147483647


  • Subject: Re: NSString Retain Count of 2147483647
  • From: Chris Suter <email@hidden>
  • Date: Thu, 25 Jun 2009 11:04:09 +1000

Hi Jean-Daniel,

On Thu, Jun 25, 2009 at 2:56 AM, Jean-Daniel
Dupas<email@hidden> wrote:

> Actually it does not warn. But IMHO it should. What if 'someArray' is a
> subclass of NSArray that does not retain its content (a CFArray created
> using NULL callback for example) ?

It definitely shouldn’t warn for the above case; it’s a common pattern
that would lead to too many false positives.

> And even with a standard NSMutableArray, it does not warn if you do
> something like this but should too:
> id someObject = [[MyObject alloc] init];
> [someArray addObject:someObject];
> [someArray removeObject:someObject];
> [someObject release];
> [someObject doSomething];

In this case it would be nice for it to warn. Mind you, I doubt it’s a
common enough bug to be worth the effort of implementing it.

Regards,

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSString Retain Count of 2147483647 (From: Thomas Wetmore <email@hidden>)
 >Re: NSString Retain Count of 2147483647 (From: Gwynne Raskind <email@hidden>)
 >Re: NSString Retain Count of 2147483647 (From: Clark Cox <email@hidden>)
 >Re: NSString Retain Count of 2147483647 (From: Martin Redington <email@hidden>)
 >Re: NSString Retain Count of 2147483647 (From: Jean-Daniel Dupas <email@hidden>)
 >Re: NSString Retain Count of 2147483647 (From: Bill Bumgarner <email@hidden>)
 >Re: NSString Retain Count of 2147483647 (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Using Snow Leopard for development (was: NSString Retain Count of 2147483647)
  • Next by Date: Xcode USB Debug Kit 10.5.7 Download?
  • Previous by thread: Re: NSString Retain Count of 2147483647
  • Next by thread: Re: NSString Retain Count of 2147483647
  • Index(es):
    • Date
    • Thread