Re: Cleaning up a project from static/global variables

2015-03-22 Thread Eyal Redler
Great! Just what I was looking for. Thank you Eyal > On Mar 21, 2015, at 10:04 PM, Quincey Morris > wrote: > > On Mar 21, 2015, at 12:48 , Eyal Redler wrote: >> >> I can do a search for "static" but some are plain globals: variables defined >> outside of any method. > > Oh, I thought you

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Jeffrey Robert Kelley
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 protocol

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Quincey Morris
On Mar 21, 2015, at 12:48 , Eyal Redler wrote: > > I can do a search for "static" but some are plain globals: variables defined > outside of any method. Oh, I thought you meant that you want to find references to (known) globals, but you seem to be saying you want to find all the definitions o

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Gary L. Wade
If you’re wanting to look at all the globals in your project in one place, go to the Symbol Navigator and make sure the Class/Protocol filter is turned off and the Project-Defined filter is turned on. This will give you easy access to your project-defined globals. -- Gary L. Wade http://www.garywa

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Eyal Redler
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 > wrote: > > On Mar 21, 2015, at 09:07 , Eyal Redler wrote: >> >> I have a rather large ObjC and C project that I want to clean-up in orde

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Quincey Morris
On Mar 21, 2015, at 09:07 , Eyal Redler 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 glo

Cleaning up a project from static/global variables

2015-03-21 Thread Eyal Redler
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 no