Re: Getting resource for key (Swift)
Re: Getting resource for key (Swift)
- Subject: Re: Getting resource for key (Swift)
- From: Jens Alfke <email@hidden>
- Date: Tue, 21 Jul 2015 09:07:25 -0700
> On Jul 21, 2015, at 1:48 AM, Jan E. Schotsman <email@hidden> wrote:
>
> So I just needed to replace "Bool?" by "AnyObject?"
Yes. If you look at the method’s declaration, the parameter type is “id*” in Obj-C, so it’s pretty clear you need to pass a pointer to an object. If you’d tried to pass a BOOL* in Objective-C you would have gotten a similar error.
—Jens
_______________________________________________
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