Instancetype and refactoring methods
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