Skip to content

BleepingSwift/nullability-annotations-objc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NullabilityAnnotationsObjc

Sample Objective-C code demonstrating Objective-C's nullability annotations tell the compiler which pointers can be nil. They catch bugs at compile time and make your code bridge to Swift cleanly..

This project accompanies the article: Nullability Annotations in Objective-C

Requirements

  • Xcode 26.2+
  • iOS 26.0+

Getting Started

  1. Clone this repository
  2. Run xcodegen generate (requires XcodeGen)
  3. Open NullabilityAnnotationsObjc.xcodeproj
  4. Build and run

What's Included

  • main.m: Source file
  • AppDelegate.h: Source file
  • AppDelegate.m: Source file
  • User.h: Source file
  • User.m: Source file
  • UserManager.h: Source file
  • UserManager.m: Source file
  • DataStore.h: Source file
  • DataStore.m: Source file
  • LegacyAPI.h: Source file
  • LegacyAPI.m: Source file
  • ModernAPI.h: Source file
  • ModernAPI.m: Source file
  • ResettableConfig.h: Source file
  • ResettableConfig.m: Source file
  • ViewController.h: Source file
  • ViewController.m: Source file

Language

This project is written in Objective-C to demonstrate traditional iOS development patterns.

Learn More

Read the full article at BleepingSwift for detailed explanations and additional examples.

License

MIT License - see LICENSE for details.

About

Objective-C's nullability annotations tell the compiler which pointers can be nil. They catch bugs at compile time and make your code bridge to Swift cleanly.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors