> On 22 Oct 2014, at 19:10, Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: > > >> On 23 Oct 2014, at 01:02, Scott Ribe <scott_r...@elevated-dev.com> wrote: >> >> On Oct 22, 2014, at 11:46 AM, Gerriet M. Denkmann <gerr...@mdenkmann.de> >> wrote: >>> >>> But how to fix this? >> >> ARC expects a retained pointer; I'd retain it. > > I tried, but got told: "error: ARC forbids explicit message send of 'retain'". > > NSDictionary *temp; > [ iv getReturnValue: & temp ]; > NSDictionary *a = [temp retain]; > Surely the code that returns the object pointed to by temp has to ensure that the object has been correctly retained?
Jonathan _______________________________________________ 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