• 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: Memory question when added a view to the superView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory question when added a view to the superView


  • Subject: Re: Memory question when added a view to the superView
  • From: Lee Ann Rucker <email@hidden>
  • Date: Fri, 10 Sep 2010 13:23:34 -0700
  • Acceptlanguage: en-US
  • Thread-topic: Memory question when added a view to the superView

On Sep 10, 2010, at 1:11 PM, Dave Carrigan wrote:

> On Sep 10, 2010, at 1:05 PM, Dave DeLong wrote:
>> *Unless the documentation says otherwise.  Consider, for example, +[NSData dataWithBytesNoCopy:...].
>
>
> True, although that particular method is taking ownership of a buffer, not of an object. I would be curious if there are any APIs that actually take ownership of an object from you, but I bet that they're very rare.
>


Rare enough that someone commented it in our code and I knew exactly where to look to find it (though it's CF, not Cocoa):

// IOServiceGetMatchingService: _Always_ calls CFRelease() once on all non-NULL references.

_______________________________________________

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: 
 >Memory question when added a view to the superView (From: Philip Vallone <email@hidden>)
 >Re: Memory question when added a view to the superView (From: Dave Carrigan <email@hidden>)
 >Re: Memory question when added a view to the superView (From: Dave DeLong <email@hidden>)
 >Re: Memory question when added a view to the superView (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: Memory question when added a view to the superView
  • Next by Date: Re: Memory question when added a view to the superView
  • Previous by thread: Re: Memory question when added a view to the superView
  • Next by thread: Re: Memory question when added a view to the superView
  • Index(es):
    • Date
    • Thread