> On Oct 27, 2015, at 7:08 PM, Graham Cox <graham....@bigpond.com> wrote: > >> On 28 Oct 2015, at 10:53 AM, Alex Kac <a...@fanaticsoftware.com >> <mailto:a...@fanaticsoftware.com>> wrote: >> >> Have you tried simply passing in a blank dictionary? Is that OK? > > > Yes, that works OK. It’s at least a simple way to shut the warning up, though > strikes me as unnecessary and inefficient, FWIW.
It’s not that inefficient, given that an immutable empty array or dictionary is just going to end up being a shared instance anyway, rather than actually allocating and deallocating an object. The only costs should be asking the container if it’s empty, and the usual ARC retain/release stuff. Charles _______________________________________________ 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