ILFoundation: Extensions to the Foundation framework for iOS and macOS development.
From iStumbler Labs.
ILFoundation adds UTF8 and hex string encoding to NSString,
adds RFC 2397 data: URL support to NSURL,
and adds ILHashable and ILHashingInputStream for calculating hashs on Data and Streams
ILFoundation supports the CardView and Soup frameworks.
Categories are defined on Foundation classes to provide extensions for text processing and working with data urls.
-
- Adds: methods for generating Message Digest and Secure Hashes from objects
-
- Adds:
ILHashablemethods toNSData
- Adds:
-
- Adds:
ILHashablemethods toNSInputStream - Adds:
ILHasingInputStreamclass to wrapNSInputStreamobjects and generate hash codes
- Adds:
-
- Adds:
+UTFEncodingOfData:to auto-detect UTF formatted strings - Adds:
+stringWithUTFData:and-initWithUTFData: - Adds:
-dataWithByteOrderUTFEncoding: - Adds:
+hexStringWithData:to generate hex output from NSData - Adds:
-initHexStringWithData: - Adds:
-linesWithMaxLen:to split a long string (hex or otherwise) into lines of a maximum length
- Adds:
-
NSURL+ILFoundationAdds methods for working with RFC 2397data:URLs:- Adds:
+dataURLWithData:and+dataURLwithData:mediaType:parameters:contentEncoding:for genratingdata:URLs - Adds:
-URLDataand-URLDataWithMediaType:parameters:contentEncoding:for parsingdata:URLs- Supports
utf8,hex, andbase64encodings
- Supports
- Adds
Data:x-type/...URLs for:- Date -
+dataURLWithDate:and+dateWithDataURL: - Intervals -
+dataURLWithDate:interval:and+dateWithDataURL:interval: - Points -
+dataURLWithPoint:and+pointWithDataURL: - Sizes -
+dataURLWithSize:and+sizeWithDataURL: - Rects -
+dataURLWithRect:and+rectWithDataURL: - Ranges -
+dataURLWithRange:and+rangeWithDataURL: - Vectors -
+dataURLWithVector:and+vectorWithDataURL: - Measures -
+dataURLWithMeasure:and+measureWithDataURL: - Regex -
+dataURLWithRegex:and+regexWithDataURL:
- Date -
- Adds
+URNWithUUID:and+UUIDWithURL:for UUID URNs - Adds:
+URLWithUTTypeData:for unpacking URLs from pasteboard data with UTTypepublic.url
- Adds:
- implement ILHashingOutputStream
- implement SHA3 and Skein Hash functions
- implement
+dataURLWithPredicate:... and+dataURLWithSort:... in NSURL
-
1.2.0: 11 April 2026- better nullability
- Add
stringEncodingOfData:convertedString: - Add
-isBinaryPlistData - Changed swift package url https://github.com/alfwatt/ILFoundation
-
1.1.0: 20 April 2025- Added UTF8 Error detection and correction code from Athenstean
- Improved Swift Interface <- this is a breaking change, but the major version is not incremented
- Adds
Data:x-type/...URLs for Date, Intervals, Points, Sizes, Rects, Ranges, Vectors, Measures, and Regex objects - Adds UUID URNs
- Fixes iOS build by removing NSPoint
-
1.0: 26 February 2025- Forked from KitBridge, added NSData hash code functions
- Clone the latest sources:
git clone https://github.com/iStumblerLabs/ILFoundation.gitnear or inside your application's project directory - Drag
ILFoundation.xcodprojinto your project - include the
ILFoundation.frameworkin your applicationsResources/Frameworksdirectory- link the appropriate version of
ILFoundation.frameworkto all the targets which use it
- link the appropriate version of
A Swift Package is defined in Package.swift for projects using Swift Package Manager,
you can include the following URL in your project to use it:
https://github.com/alfwatt/ILFoundation
The MIT License (MIT)
Copyright © 2017-2026 Alf Watt <alf@istumbler.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.