Re: ARC, blocks, capture variables
Re: ARC, blocks, capture variables
- Subject: Re: ARC, blocks, capture variables
- From: Scott Ribe <email@hidden>
- Date: Mon, 28 Sep 2015 18:33:17 -0600
On Sep 28, 2015, at 6:24 PM, Quincey Morris <email@hidden> wrote:
>
> On Sep 28, 2015, at 17:14 , Scott Ribe <email@hidden> wrote:
>>
>> "Assigning block literal to a weak variable; object will be released after assignment"
>
> Well, you wouldn’t assign a literal there. You want the exact same block pointer for both parts of this, so you’d assign the literal to a local variable, and use the local variable first for the registration then for the weak variable assignment.
Ah, I just tried assignment to weak ivar then registration, gets the same value. Anyway, avoiding monkeying with temp vars to fool the compiler is why I re-did the API.
> But it’s moot, now.
>
> (you went off-list in your last reply, not sure if you intended to)
Nope, it was accidental. I'll re-send for the record.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice
_______________________________________________
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, blocks, capture variables (From: Scott Ribe <email@hidden>) |
| >Re: ARC, blocks, capture variables (From: Quincey Morris <email@hidden>) |
| >Re: ARC, blocks, capture variables (From: Scott Ribe <email@hidden>) |
| >Re: ARC, blocks, capture variables (From: Scott Ribe <email@hidden>) |
| >Re: ARC, blocks, capture variables (From: Quincey Morris <email@hidden>) |