[cocos2d/cocos2d-swift] 05b938: Always stop animating when app is backgrounded

0 views
Skip to first unread message

GitHub

unread,
Sep 24, 2014, 3:24:45 PM9/24/14
to cocos2d-iph...@googlegroups.com
Branch: refs/heads/v3.2
Home: https://github.com/cocos2d/cocos2d-swift
Commit: 05b9385fac4fd24664be91a03b898599b9e35188
https://github.com/cocos2d/cocos2d-swift/commit/05b9385fac4fd24664be91a03b898599b9e35188
Author: Sean Ridenour <kew...@gmail.com>
Date: 2014-08-21 (Thu, 21 Aug 2014)

Changed paths:
M cocos2d/Platforms/iOS/CCAppDelegate.m

Log Message:
-----------
Always stop animating when app is backgrounded

Even if the CCDirector isn't the "visible" view controller, the app will still crash if it gets backgrounded and the CCDirector keeps trying to draw. Make sure CCDirector stops drawing if, say, the GameCenter login screen is showing and the user switches away from the app to look up their password in 1Password or something.


Commit: 975dff55c12b01db9dbd7a4baa21d0e692dafe66
https://github.com/cocos2d/cocos2d-swift/commit/975dff55c12b01db9dbd7a4baa21d0e692dafe66
Author: Sean Ridenour <kew...@gmail.com>
Date: 2014-08-21 (Thu, 21 Aug 2014)

Changed paths:
M cocos2d/Platforms/iOS/CCAppDelegate.m

Log Message:
-----------
More consistent curly braces.


Commit: 858b6a9f23dea6d905a02b0147aa76e10d7a5cf4
https://github.com/cocos2d/cocos2d-swift/commit/858b6a9f23dea6d905a02b0147aa76e10d7a5cf4
Author: Sarah Smith <s...@storybridge.org>
Date: 2014-08-28 (Thu, 28 Aug 2014)

Changed paths:
M cocos2d-ui-tests/tests/CCBMFontTest.m
M cocos2d/CCLabelBMFont.m

Log Message:
-----------
Handle odd line seperators in CCLabelBMFont.

The XCode plist editor and some other editors can create string data
with Unicode line seperators in it, eg: \u2028.

http://en.wikipedia.org/wiki/Newline#Unicode

You can easily enter one using <ctrl>+<enter> in your plist or code
editor. The plist editor will not let you type <enter> as it will just
commit the current cell being edited. To get an actual newline you can
type <option>+<enter>.

Code in CCLabelBMFont correctly tests using NSCharacterSet
newlineCharacterSet in most places, but in two places incorrectly
tests for equality against '\n'.

So strings with one of these "odd" newlines will be rendered with all
the text on one line. Fix this, and make the code consistent.


Commit: c4bc3e040e5aedbc2cca0f3ad1bf2ee070c36866
https://github.com/cocos2d/cocos2d-swift/commit/c4bc3e040e5aedbc2cca0f3ad1bf2ee070c36866
Author: AT2014 <in...@apptyrant.com>
Date: 2014-08-30 (Sat, 30 Aug 2014)

Changed paths:
M cocos2d/CCNode.m

Log Message:
-----------
Added reschedule:interval method to CCNode.

Added reschedule:interval method to CCNode.m. When you call the reschedule:interval: method using a selector that is already scheduled this method will update the interval. It may be useful to use this method at certain times rather than using the schedule:interval: method (which will unschedule and then reschedule an already scheduled method).

If you call reschedule:interval method and pass in a selector that was never scheduled, this method will schedule the selector for the first time.


Commit: b5c1a11708d9d68e563257d00864608d2f10b709
https://github.com/cocos2d/cocos2d-swift/commit/b5c1a11708d9d68e563257d00864608d2f10b709
Author: AT2014 <in...@apptyrant.com>
Date: 2014-08-30 (Sat, 30 Aug 2014)

Changed paths:
M cocos2d/CCNode.h

Log Message:
-----------
Added reschedule method to CCNode header

Added reschedule:interval: method to CCNode header file.


Commit: bc53002792f9bf8363f8b7ef20d60abc5f9902f6
https://github.com/cocos2d/cocos2d-swift/commit/bc53002792f9bf8363f8b7ef20d60abc5f9902f6
Author: AT2014 <in...@apptyrant.com>
Date: 2014-08-30 (Sat, 30 Aug 2014)

Changed paths:
M cocos2d/CCNode.h

Log Message:
-----------
Fixed header comment.

Fixed header comment on reschedule:interval: method.


Commit: f63711125b91eb0960161c533106cc6eb28e8c55
https://github.com/cocos2d/cocos2d-swift/commit/f63711125b91eb0960161c533106cc6eb28e8c55
Author: Scott Lembcke <slem...@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)

Changed paths:
M cocos2d/CCNode.h
M cocos2d/CCNode.m

Log Message:
-----------
Merge pull request #958 from AT2014/v3.1

Added alternative reschedule:interval method to CCNode class.


Commit: 921e268efbc0b3797917d7fac96252ee6fadd976
https://github.com/cocos2d/cocos2d-swift/commit/921e268efbc0b3797917d7fac96252ee6fadd976
Author: Scott Lembcke <slem...@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)

Changed paths:
M cocos2d-ui-tests/tests/CCBMFontTest.m
M cocos2d/CCLabelBMFont.m

Log Message:
-----------
Merge pull request #953 from sarah-j-smith/v3.1

Handle odd line seperators in CCLabelBMFont.


Commit: ab3fe789648c3eb4db5b583865a61c17cd4288a4
https://github.com/cocos2d/cocos2d-swift/commit/ab3fe789648c3eb4db5b583865a61c17cd4288a4
Author: Scott Lembcke <slem...@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)

Changed paths:
M cocos2d/Platforms/iOS/CCAppDelegate.m

Log Message:
-----------
Merge pull request #946 from sridenour/v3.1

Always stop CCDirector when app is backgrounded


Commit: 426c593180ca5d165a58eca8672af3b1b5ecc499
https://github.com/cocos2d/cocos2d-swift/commit/426c593180ca5d165a58eca8672af3b1b5ecc499
Author: slembcke <slem...@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)

Changed paths:
M cocos2d-ui-tests/tests/CCBMFontTest.m
M cocos2d/CCLabelBMFont.m
M cocos2d/CCNode.h
M cocos2d/CCNode.m
M cocos2d/Platforms/iOS/CCAppDelegate.m

Log Message:
-----------
Merge branch 'v3.1' into v3.2


Compare: https://github.com/cocos2d/cocos2d-swift/compare/f7e825878f97...426c593180ca
Reply all
Reply to author
Forward
0 new messages