• 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: mutableBytes Creates Autoreleased Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mutableBytes Creates Autoreleased Objects


  • Subject: Re: mutableBytes Creates Autoreleased Objects
  • From: Dave Fernandes <email@hidden>
  • Date: Sat, 12 May 2012 17:19:21 -0400

Cool! That would eliminate some of the gymnastics I have been going through to make sure I reference the NSData object some time after I use the internal bytes.

On 2012-05-12, at 5:05 PM, Quincey Morris wrote:

> On May 12, 2012, at 13:55 , Dave Fernandes wrote:
>
>> So when a method is declared __attribute__ ((objc_returns_inner_pointer)), then LLVM tracks regular pointers like it would NSObject pointers to see when the owning object can be dealloced? Just want to make sure I understand.
>
> … to see when the owning object's variable's compile time scope ends. Other retain/release optimizations aside, that would be the point where its retain count is decremented, and that might in turn trigger deallocation.
>
> But, yes, basically that's how I understand the documentation. It seems *way* too convenient to be true. ;)
>
>


_______________________________________________

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: 
 >mutableBytes Creates Autoreleased Objects (From: Andreas Grosam <email@hidden>)
 >Re: mutableBytes Creates Autoreleased Objects (From: Quincey Morris <email@hidden>)
 >Re: mutableBytes Creates Autoreleased Objects (From: Dave Fernandes <email@hidden>)
 >Re: mutableBytes Creates Autoreleased Objects (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: mutableBytes Creates Autoreleased Objects
  • Next by Date: Re: mutableBytes Creates Autoreleased Objects
  • Previous by thread: Re: mutableBytes Creates Autoreleased Objects
  • Next by thread: Re: mutableBytes Creates Autoreleased Objects
  • Index(es):
    • Date
    • Thread