• 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: Cleaning up a project from static/global variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Cleaning up a project from static/global variables (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Cleaning up a project from static/global variables
  • Next by Date: Why is NSString.UTF8String unavailable in Swift?
  • Previous by thread: Re: Cleaning up a project from static/global variables
  • Next by thread: Scrolling while resizing a UITableView with UITextFields
  • Index(es):
    • Date
    • Thread