Skip to content

๐Ÿ’Ž A collection of Objective-C root classes as a basis for using mulle-objc

License

Notifications You must be signed in to change notification settings

AugustRush/MulleObjC

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

92 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MulleObjC

MulleObjC supplies the most basic runtime components to build a foundation on top of it. MulleObjC fundamentally depends on standard C libraries only (f.e. no <unistd.h>)

Fork Build Status Release Version
Mulle kybernetiK Build Status Mulle kybernetiK tag Build Status
Community Build Status Community tag Build Status

Objects

  • NSAutoreleasePool - garbage collection
  • NSCoder - object serialization
  • NSObject - the root class of everything
  • NSLock - locking for threading
  • NSRecursiveLock - recursive locking for threading
  • NSInvocation - method call serialization
  • NSMethodSignature - method description
  • NSProxy - the other root class of everything :=)
  • NSThread - threads

Protocols

  • NSCoding - object serialization
  • NSCopying - object copying
  • NSFastEnumeration - support for for ... in loops
  • NSObject - for objects that don't want to behave like NSObject but can't be them
  • MulleObjCTaggedPointer - enables classes to use tagged pointers
  • MulleObjCSingleton - enables classes to produce singletons
  • MulleObjCClassCluster - enables classes to act as class clusters

It does all the interfacing with the mulle-objc runtime. Any library code above MulleObjC ideally, should not be using the mulle-objc runtime directly. Creating a foundation on top of mulle-objc without using MulleObjC is a foolhardy endeavor IMO.

MulleObjC must be compiled with the mulle-clang compiler, or a compiler which supports the metaABI required for the mulle-objc runtime.

MulleObjC is protocol based

How to use it

Where is the documentation ? At this point in time there is precious littl as it is assumed, that you are familiar with the OS X Foundation. MulleObjC offers a subset of that functionality.

Linking against MulleObjC

When using static libraries, -ObjC doesn't work, because the compiler doesn't produce ObjC segments. Use -all_load.

Install

On OS X you can use homebrew to install the library:

brew install mulle-objc/software/mulleobjc

to install the compiler:

brew install codeon-gmbh/software/mulle-clang

On other platforms you can use mulle-install from mulle-build to install the library:

mulle-install --prefix /usr/local --branch release https://github.com/mulle-objc/MulleObjC

Otherwise read:

Acknowledgements

Parts of this library:

Copyright (c) 2006-2007 Christopher J. W. Lloyd
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.

Platforms and Compilers

All platforms and compilers supported by mulle-c11 and mulle-thread.

Author

Nat! for Mulle kybernetiK and Codeon GmbH

About

๐Ÿ’Ž A collection of Objective-C root classes as a basis for using mulle-objc

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 83.8%
  • C 13.5%
  • CMake 1.4%
  • Shell 1.1%
  • Other 0.2%