• 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
Instancetype and refactoring methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Instancetype and refactoring methods


  • Subject: Instancetype and refactoring methods
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 09 Nov 2015 13:58:22 -0500
  • X_v_e_cd: fddc61cddd3f14771d7b9cc04e1bc8de
  • X_v_r_cd: dc903047b2c4a6f823409b6084cb839c

I'm enjoying the risks of refactoring some poorly named methods in Xcode 7.1 and the refactorer is mentioning "Ambiguous Type: Message sent to id." for methods sent to a delegate.

Before I give it a shot, is this a case where using instancetype to return the instance of the object that holds the method a better choice than id?

It appears so, but just thought I'd ask the group.

Thanks in advance,
Alex Zavatone
_______________________________________________

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: Instancetype and refactoring methods
      • From: Jens Alfke <email@hidden>
  • Prev by Date: SOLVED: Fade when changing window's rootViewController possible?
  • Next by Date: Re: Instancetype and refactoring methods
  • Previous by thread: Re: Fade when changing window's rootViewController possible?
  • Next by thread: Re: Instancetype and refactoring methods
  • Index(es):
    • Date
    • Thread