Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
10 events
when toggle format what by license comment
S Nov 27, 2019 at 18:17 history suggested Nilanshu Jaiswal CC BY-SA 4.0
Formatting error correction
Nov 27, 2019 at 17:30 review Suggested edits
S Nov 27, 2019 at 18:17
Jun 10, 2017 at 8:57 history edited Peter Mortensen CC BY-SA 3.0
Active reading (e.g. <http://en.wikipedia.org/wiki/Cocoa_%28API%29>).
Sep 22, 2016 at 1:10 comment added Rob "Swift Singletons are exposed in the cocoa frameworks as class functions" ... Not in Swift 3. They're now usually static properties.
Dec 2, 2015 at 3:57 history edited Ryan CC BY-SA 3.0
change to a static let within the class
Dec 2, 2015 at 3:56 comment added Ryan @malhal when a variable is marked private but outside a class, it's not global - but scoped only to the file it is in. A static inside the class would work pretty much the same, but i've updated the answer to use the static as you suggested, as it better groups the variable to the class if you happen to use multiple classes within the file.
Dec 1, 2015 at 5:09 comment added malhal the global variable should be changed to a class variable via a static inside the class.
Oct 14, 2015 at 5:39 comment added x4h1d upvoted for the comment of LearnCocos2D :) , also for the style.
Jan 14, 2015 at 21:44 history edited Ryan CC BY-SA 3.0
formatting
Jan 13, 2015 at 3:36 history answered Ryan CC BY-SA 3.0