• 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: Dumb ARC question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dumb ARC question


  • Subject: Re: Dumb ARC question
  • From: John McCall <email@hidden>
  • Date: Tue, 01 Jan 2013 22:02:11 -0800

On Dec 28, 2012, at 12:59 AM, Quincey Morris <email@hidden> wrote:
> On Dec 27, 2012, at 22:37, Rick Mann <email@hidden> wrote:
>> So, the usual bit about references being weak by default in C structs (and C++ classes) doesn't hold here.
>
> Huh? References aren't weak by default anywhere.
>
> Are you thinking of __usafe_unretained? That's not weak, just unmanaged by ARC, and it's the only ownership qualifier allowed by ARC for struct members that point to objects (and therefore highly unrecommended).

Just a quick clarification:  this is not true in ARC-with-C++.  Structs compiled in Objective-C++ mode are permitted to have __strong and __weak members.

John.
_______________________________________________

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

  • Prev by Date: Text Field Cells in Table View: Enabled and Editable not working
  • Next by Date: Editing multiple selections with bindings
  • Previous by thread: Re: Text Field Cells in Table View: Enabled and Editable not working
  • Next by thread: Editing multiple selections with bindings
  • Index(es):
    • Date
    • Thread