objective-c

Objective-C for legacy iOS/macOS development with manual memory. Use for .m files.

7 stars

Best use case

objective-c is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Objective-C for legacy iOS/macOS development with manual memory. Use for .m files.

Teams using objective-c should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/objective-c/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/languages/objective-c/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/objective-c/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How objective-c Compares

Feature / Agentobjective-cStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Objective-C for legacy iOS/macOS development with manual memory. Use for .m files.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Objective-C

Objective-C is in **maintenance mode**. New features are rare, but it powers the Apple ecosystem's foundation. It allows mixing C++ (`.mm`) loosely.

## When to Use

- **Legacy iOS/macOS**: Maintaining apps created before 2014.
- **C++ Interop**: Obj-C++ is often the bridge between C++ engines and Swift.
- **Runtime Swizzling**: Dynamic method replacement (used by Analytics SDKs).

## Core Concepts

### Message Passing

`[object method:argument]`. Dynamic binding at runtime.

### ARC

Automatic Reference Counting. (Retain/Release).

### Headers

`.h` (interface) and `.m` (implementation).

## Best Practices (2025)

**Do**:

- **Use Nullability Annotations**: `nullable`, `nonnull` to aid Swift interop.
- **Use Modern Syntax**: `@[@"a", @"b"]` for arrays.
- **Migrate to Swift**: New features should be written in Swift.

**Don't**:

- **Don't use manual retain/release**: Always ensure ARC is on.

## References

- [Apple Developer Documentation](https://developer.apple.com/)