Re: Cleaning up a project from static/global variables
Re: Cleaning up a project from static/global variables
- Subject: Re: Cleaning up a project from static/global variables
- From: Jeffrey Robert Kelley <email@hidden>
- Date: Sat, 21 Mar 2015 13:09:00 -0700
Eyal,
In Xcode, they should appear in the Symbol Navigator (⌘2) under “Globals.” Just verified that, at least in Swift, global variables do appear. You’ll want to use the icons at the bottom to hide system-defined globals, and deselect the left one, which only shows classes and protocols.
Jeff Kelley
email@hidden | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org <http://jeffkelley.org/>
> On Mar 21, 2015, at 12:48 PM, Eyal Redler <email@hidden> wrote:
>
> I can do a search for "static" but some are plain globals: variables defined outside of any method.
>
> Eyal
>
>
>
>> On Mar 21, 2015, at 6:34 PM, Quincey Morris <email@hidden> wrote:
>>
>> On Mar 21, 2015, at 09:07 , Eyal Redler <email@hidden> wrote:
>>>
>>> I have a rather large ObjC and C project that I want to clean-up in order to make it re-enterent/thread safe.
>>> There are all sorts of issues I need to deal with here but one of the most troubling is the rather liberal use of static and global variables through the project. Fixing the issues is not a problem but I need a way to be able to find these in all the files (other then actually scanning each file manually). Are there any tools that can help me do this?
>>
>> An Xcode project? Why can’t you use global find (Command-3)? And if searching textually is too crude, there are options near the top of the global find panel that allow you to search symbolically.
>>
>
> _______________________________________________
>
> 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
_______________________________________________
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