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 protected] | @SlaunchaMan <https://twitter.com/SlaunchaMan> |
jeffkelley.org <http://jeffkelley.org/>
> On Mar 21, 2015, at 12:48 PM, Eyal Redler <[email protected]> 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 protected]> wrote:
>>
>> On Mar 21, 2015, at 09:07 , Eyal Redler <[email protected]> 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 protected])
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/slaunchaman%40gmail.com
>
> This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]