• 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: Calling -retain inside -dealloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling -retain inside -dealloc


  • Subject: Re: Calling -retain inside -dealloc
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 27 Jun 2005 11:09:15 +0200

Andrew,

On 27.6.2005, at 9:15, Andrew Garber wrote:

I would be
great I could use an NSMutableArray without having it mess with the
retain/release counts

Well, retain/release is pretty fast, and I very strongly suspect that if you encounter performance problems, they would be caused by other issues (although, without knowing the actual code, of course I cannot be completely sure). Have you profiled?


Anyway, have you noticed what docs say?

NSArray: "... investigate the corresponding Core Foundation type, CFArray. Because NSArray and CFArray are “toll-free bridged,” you can substitute a CFArray object for a NSArray object in your code (with appropriate casting). Although they are corresponding types, CFArray and NSArray do not have identical interfaces or implementations, and you can sometimes do things with CFArray that you cannot easily do with NSArray. For example, CFArray provides a set of callbacks, some of which are for implementing custom retain- release behavior. If you specify NULL implementations for these callbacks, you can easily get a non-retaining array."
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

This email sent to email@hidden

References: 
 >Calling -retain inside -dealloc (From: Andrew Garber <email@hidden>)
 >Re: Calling -retain inside -dealloc (From: Andrew Garber <email@hidden>)

  • Prev by Date: Re: Class clusters - infinite loop?
  • Next by Date: Re: Calling -retain inside -dealloc
  • Previous by thread: Re: Calling -retain inside -dealloc
  • Next by thread: Re: Calling -retain inside -dealloc
  • Index(es):
    • Date
    • Thread