Re: Who owns a child view controller?
Re: Who owns a child view controller?
- Subject: Re: Who owns a child view controller?
- From: Charles Srstka <email@hidden>
- Date: Thu, 13 Jul 2017 08:47:27 -0500
> On Jul 12, 2017, at 6:30 PM, Quincey Morris
> <email@hidden> wrote:
>
> On Jul 12, 2017, at 16:19 , Greg Parker <email@hidden
> <mailto:email@hidden>> wrote:
>>
>> "Unowned" means something else in Swift.
>
> I suppose. I guess I’ve internalized “unowned” to mean “unretained but
> crashes tidily” in Swift, but “unretained and crashes as messily as possible”
> in Obj-C. :) Plus, Swift has “unowned(unsafe)” which means the same thing as
> “unretained unsafe” in Obj-C.
>
> (And, yes, I know that Swift “unowned” isn’t precisely unretained. Whoever
> thought of this trick should get a round of applause.)
>
> But you drove to me to look at the NSWindow documentation, and it appears
> that the “delegate” property is (now) weak, not unsafe unretained. I’m not
> sure when this changed.
It’s in the 10.13 release notes, so whether it’s actually changed yet is up to
interpretation. ;-)
Charles
_______________________________________________
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