• 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: ARC and IBOutlet - strong vs weak......
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC and IBOutlet - strong vs weak......


  • Subject: Re: ARC and IBOutlet - strong vs weak......
  • From: Britt Durbrow <email@hidden>
  • Date: Sun, 06 Dec 2015 12:07:32 -0800

Your reference is weak, old man… oh, wait, that’s kung-fu…. um….


Seriously - I always make my references strong unless I have a good reason not to (avoiding retain cycles is one such good reason). Weak references, while nice for what they do, do have some overhead and other drawbacks (like the lack of KVO compliance Gerd Knops mentioned).


> On Dec 6, 2015, at 7:15 AM, Dave <email@hidden> wrote:
>
>
>> On 5 Dec 2015, at 17:31, Alex Zavatone <email@hidden> wrote:
>>
>> Weak.
>>
>> There is only one reference to it, right?
>>
>
> It seems that the actual answer is “it depends”……. But making them strong unless you specifically need to do otherwise seems like the best practise approach…..
>
> Dave
>
>
>
>
> _______________________________________________
>
> 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


_______________________________________________

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: 
 >ARC and IBOutlet - strong vs weak...... (From: Dave <email@hidden>)
 >Re: ARC and IBOutlet - strong vs weak...... (From: Dave <email@hidden>)

  • Prev by Date: Re: How to create an empty stack view in code
  • Next by Date: Re: How to
  • Previous by thread: Re: ARC and IBOutlet - strong vs weak......
  • Next by thread: Re: ARC and IBOutlet - strong vs weak......
  • Index(es):
    • Date
    • Thread