Re: Refactoring a #define definition
Re: Refactoring a #define definition
- Subject: Re: Refactoring a #define definition
- From: Dave <email@hidden>
- Date: Mon, 27 Jul 2015 10:13:57 +0100
On 9 Jun 2015, at 16:01, Alex Zavatone < email@hidden> wrote:
On Jun 8, 2015, at 8:07 PM, Carl Hoefs wrote: On Jun 8, 2015, at 4:58 PM, Roland King < email@hidden> wrote:
When I try to refactor (any) definition in Objc, such as:
#define kCalloutDevice "IOCalloutDevice"
Xcode 6.3.2 complains:
The selection is not a type that can be renamed. Make a different selection and try again.
What am I doing wrong? -Carl
Nothing - the refactoring tool doesn’t refactor defines, which is what the error message tells you. Use find and replace.
Yep -- (however, the "try again” advice is priceless...) Thx, -Carl
Wording is everything. "Make a different selection that Refactor can handle and try again." That might work a little bit better.
Or just not light up Menu Items that can’t be operated on thus avoiding the message altogether.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden