• 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: Refactoring a #define definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:


On 9 Jun 2015, at 07:49, Carl Hoefs <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

  • Prev by Date: Re: Suggestion for XCode Groups
  • Next by Date: Re: Suggestion for XCode Groups
  • Previous by thread: Re: Refactoring a #define definition
  • Next by thread: matching brace not found
  • Index(es):
    • Date
    • Thread