# supermarin/ObjectiveSugar

ObjectiveC additions for humans. Ruby style.

Repository: https://github.com/supermarin/ObjectiveSugar
Canonical: https://ross.abutalabs.com/products/objectivesugar
Language: Objective-C
License: MIT
License Family: permissive
Archived: true
Last push: 2016-08-30T22:52:39+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5033, "days_push": 3655, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2158, forks 189 (observed 2026-08-28T04:06:19.846166+00:00)

## What it is
ObjectiveSugar is a small Objective-C library that adds Ruby-style functional helpers to Foundation classes like NSNumber, NSArray, NSSet, and NSDate. It provides expressive methods such as times, upto, map, select, reject, and date arithmetic to make Objective-C code more readable.

## Use cases
- iterate over arrays with a Ruby-style each and map in Objective-C
- run a block a fixed number of times with @3 times
- filter collections with select and reject instead of verbose predicates
- do date math like 7.days until or 30.days since
- sort and manipulate NSArray/NSSet with concise helpers

## When to choose
- you maintain a legacy Objective-C iOS/macOS codebase and want more expressive collection and number APIs
- you prefer Ruby-like syntax sugar in Objective-C
- you want lightweight Foundation additions without a large dependency

## When to avoid
- you are starting a new project in Swift, which has these features natively
- you need a library with active maintenance and recent updates
- you need functional helpers beyond Foundation collections and dates

## Facets
- artifact type: library
- maturity: abandoned
- function: developer-tools
- domain: developer-tools, programming-languages
- platform: -
- tags: objective-c, cocoapods, functional-programming, syntax-sugar, foundation, ruby-style, macos, ios

## Member repositories
- supermarin/ObjectiveSugar (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:19.846166+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:22.918496+00:00, confidence not recorded.
  - readme: https://github.com/supermarin/ObjectiveSugar (fetched 2026-08-28T04:06:19.846166+00:00, sha b871b6152374)
- Data as of 2026-08-30T08:39:29.467469+00:00.
