This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> $PROJECT_DIR/merge.swift; find $PROJECT_DIR/ -iname *.swift -not -name merge.swift -exec cat {} >> $PROJECT_DIR/merge.swift \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WWDC 2013 - #???: What's new in Foundation Networking | |
----------------------------------------------------- | |
. NSURLConnection, configured through NSURLRequest. Has a global storage for cookies, cache, etc. | |
. NSURLSession, replaces NSURLConnection, per object configurable. | |
. Uploads/Downloads through the filesystem. Can be done Out-of-process, but not a regular data request. | |
. NSURLSessionTask per request, represents the status and progress. Cancel, Suspend, Resume. | |
. Per session policies: cache, cookies, credentials. | |
. backgroundSessionConfiguration | |
. Background Transfers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void generateMipMaps(CCTexture2D *texture) | |
{ | |
if ([[UIScreen mainScreen] scale] > 1) | |
{ | |
[texture generateMipmap]; | |
ccTexParams texParams = { GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE }; | |
[texture setTexParameters:&texParams]; | |
} | |
} |