Private framework is for apple use only, and usage of private framework may cause rejection of app submission. You can use class-dump to get method signatures but you can not get any constants or C functions.
This file contains hidden or 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
| // Very slightly adapted from http://stackoverflow.com/a/30141700/106244 | |
| // 99.99% Credit to Martin R! | |
| // Mapping from XML/HTML character entity reference to character | |
| // From http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references | |
| private let characterEntities : [String: Character] = [ | |
| // XML predefined entities: | |
| """ : "\"", | |
| "&" : "&", |
This file contains hidden or 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
| extension Data { | |
| /** | |
| Consumes the specified input stream, creating a new Data object | |
| with its content. | |
| - Parameter reading: The input stream to read data from. | |
| - Note: Closes the specified stream. | |
| */ | |
| init(reading input: InputStream) { | |
| self.init() | |
| input.open() |
This file contains hidden or 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
| # Xcode 4.3.3 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix | |
| # Xcode 4.3.2 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix |