On Sep 28, 2015, at 6:24 PM, Quincey Morris <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 28, 2015, at 17:14 , Scott Ribe <scott_r...@elevated-dev.com> 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 scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com