DejalUtilities is a single header file with some useful
#define macros and static functions.
I wrote DejalUtilities for my own use, but I'm making it available for the benefit of the Mac and iOS developer community.
If you find it useful, a donation via PayPal (or something from my Amazon.com Wish List) would be very much appreciated. Appropriate links can be found on the Dejal Developer page:
You can find the latest version of this code via the GitHub repository:
For news on updates, also check out the Dejal Developer page or the Dejal Blog filtered for Dejal utilities posts:
Environment & Requirements
- All recent versions of OS X or iOS.
- Objective-C language.
- ARC or non-ARC.
DejalClassSelectorAvailable()macros, to help determine available APIs.
DejalMonthsFromInterval(), and similar macros, to convert seconds to and from other units.
DEJAL_COMPILE_DATE_TIMEmacros, to help with debug information.
- Adds a
DejalWeakSelfmacro to easily make a weak representation of self for use with blocks.
- Plus several other handy macros and inline functions.
Include the DejalUtilityDefines.h file in your project.
License and Warranty
This code uses the standard BSD license. See the included License.txt file. Please also see the Dejal Open Source License web page for more information.
You can use this code at no cost, with attribution. A non-attribution license is also available, for a fee.
You're welcome to use it in commercial, closed-source, open source, free or any other kind of software, as long as you credit Dejal appropriately.
The placement and format of the credit is up to you, but I prefer the credit to be in the software's "About" window or view, if any. Alternatively, you could put the credit in the software's documentation, or on the web page for the product. The suggested format for the attribution is:
Includes DejalUtilities code from Dejal.
Where possible, please link the text "Dejal" to the Dejal Developer web page, or include the page's URL: http://www.dejal.com/developer/.
This code comes with no warranty of any kind. I hope it'll be useful to you, but I make no guarantees regarding its functionality or otherwise.
Support / Contact / Bugs / Features
I can't promise to answer questions about how to use the code.
If you create an app that uses the code, please tell me about it.
If you want to submit a feature request or bug report, please use GitHub's issue tracker for this project. Or preferably fork the code and implement the feature/fix yourself, then submit a pull request.
Dejal Systems, LLC
Contact: http://www.dejal.com/contact/?subject=DejalUtilities More open source projects: http://www.dejal.com/developer Open source announcements on Twitter: http://twitter.com/dejalopen General Dejal news on Twitter: http://twitter.com/dejal