• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting resource for key (Swift)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting resource for key (Swift)
      • From: "Jan E. Schotsman" <email@hidden>
References: 
 >Getting resource for key (Swift) (From: "Jan E. Schotsman" <email@hidden>)
 >Re: Getting resource for key (Swift) (From: Charles Srstka <email@hidden>)
 >Re: Getting resource for key (Swift) (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: Re: OsX - HTTP resource load blocked
  • Next by Date: Re: I am reluctant to file any more bugs until those already reported are fixed
  • Previous by thread: Re: Getting resource for key (Swift)
  • Next by thread: Re: Getting resource for key (Swift)
  • Index(es):
    • Date
    • Thread