https://github.com/cwchentw/ocenum
Enumeration Class for Objective-C
https://github.com/cwchentw/ocenum
enum enumerated-types enumeration objective-c objective-c-library
Last synced: over 1 year ago
JSON representation
Enumeration Class for Objective-C
- Host: GitHub
- URL: https://github.com/cwchentw/ocenum
- Owner: cwchentw
- License: mit
- Created: 2020-10-11T15:43:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-12T05:11:09.000Z (about 5 years ago)
- Last Synced: 2025-01-17T23:43:35.244Z (over 1 year ago)
- Topics: enum, enumerated-types, enumeration, objective-c, objective-c-library
- Language: Objective-C
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ocenum
Enumeration class for Objective-C.
## System Requirements
* Clang or GCC with Objective-C support
* Cocoa or GNUstep
Tested against GNUstep on Ubuntu 18.04 LTS.
## Usage
Build a dynamic library:
```
$ make dynamic
```
Build a static library:
```
$ make static
```
## Documentation
See [main.m](/main.m) for its usage.
## Note
Your Objective-C compiler will emit many warnings about potentially unresponsive messages. It's fine to neglect these warnings because those messages are generated on runtime, not showing in the interface of your enumeration object.
For better compatibility between libobjc and GNUstep, we use the libobjc of GCC on non-Apple platforms.
`OCEnum` may not work on some versions of MacOS.
## Copyright
Copyright (c) 2020-2021 Michelle Chen. Licensed under MIT.