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 quinceymor...@rivergatesoftware.com wrote: On Mar 21, 2015, at 12:48 , Eyal Redler eyred...@netvision.net.il wrote: I can do a search for static but some are plain globals: variables defined

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

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Quincey Morris
On Mar 21, 2015, at 09:07 , Eyal Redler eyred...@netvision.net.il 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

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

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 quinceymor...@rivergatesoftware.com wrote: On Mar 21, 2015, at 09:07 , Eyal Redler eyred...@netvision.net.il wrote: I have a rather large

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Quincey Morris
On Mar 21, 2015, at 12:48 , Eyal Redler eyred...@netvision.net.il 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

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