• Stars
    star
    296
  • Rank 140,464 (Top 3 %)
  • Language
    C
  • Created over 12 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Digging a Foundation With A Spoon

C-Macs

A Cocoa Application with no Nibs and no Objective-C Code

C-Macs is a successful attempt to port the ability to dig a foundation with a spoon. The app is written entirely in C, with gratuitous calls to the Objective-C Runtime.

Features

  • Nibless!
  • Main.m-less!
  • Cocoa-less!
  • Uses under 1.5 MB of memory at any one time (most of it is used for drawing the window).
  • A red square in the lower-left-hand corner (drawn in Core Graphics).

License

  • Absolutely no license. Use it at your own risk, and don't blame me if anything bad happens. Oh, and if you extend it, make sure there isn't any Objective-C in it!

##Important Notes & Bugs

  • The app does not release allocated memory;
  • There is an implied autoreleasepool, but one is not explicitly created.
  • A small reliance on __attribute__((constructor)), which is not the best way to do things…
  • WAY too many framework includes and links to dylibs we don't need.
  • Built and tested on OS X Lion. Theoretically, it's possible this works on all machines that support the modern ObjC runtime, however, use on older OSes below 10.6 is highly discouraged.
  • All calls to framework objects are compliant with OS X 10.0+, however the code will only run on intel architectures. This will be remedied first.

More Repositories

1

AFNetworking-RACExtensions

DEPRECATED: A delightful extension to the AFNetworking classes for iOS and Mac OS X.
Objective-C
599
star
2

CFIFrostedOverlayView

[Broken] A view that renders its superview with a gaussian blur.
Objective-C
204
star
3

IDEKit

A framework for creating Integrated Development Environments
Objective-C++
169
star
4

CFAAction

Composable Core Animation Actions Γ  la SceneKit
Objective-C
67
star
5

Compiler-Explorer

A native client for GodBolt
Swift
48
star
6

functional-swift-style-guide

Style and Conventions for Functional Swift Projects
38
star
7

Agda-Metaprogramming

Dependently Typed Metaprogramming Exercises
Agda
22
star
8

Presentations

20
star
9

Authentic-Weather

An Antagonistic weather application written for Tobias Van Schneider
Objective-C
18
star
10

KrakenKit

An (Obj)C(++) wrapper library for the Github API
C
16
star
11

APL.swift

Combinators for the real world
Swift
13
star
12

language-swift

A Parser and Pretty Printer for Swift
Haskell
9
star
13

LOLCODE.tmLanguage

LOLCODE Syntax Highlighting for Sublime Text 2 and TextMate
8
star
14

CFIDictaphonicWindow

Use Mountain Lion's dictation feature for commands
Objective-C
7
star
15

Hott-Summer

My Notes and Solutions from the CMU Hott Summer School
Agda
6
star
16

ExchangeKit

Wrangling The Stack Exchange API
Objective-C
5
star
17

PersistentStructure

Clojure's Data Structures, Ported
Objective-C
5
star
18

PhotosAnimationDemo

An attempt to recreate the cool animations when the iOS Photos app presents an email controller
Objective-C
4
star
19

ParkingLot

Futexes
Swift
3
star
20

CFIUserDefaults

Automatically synchronized defaults for Mac
C++
3
star
21

Parsimmon

A Swift Parser Combinator Library Parsecs Ahead of the Rest
Swift
3
star
22

CFIViewController

The innards of NSViewController, now with 10.3 compatability
Objective-C
2
star
23

CFISegmentedViewController

A specialized view controller that manages a radio-style selection interface
Objective-C
2
star
24

SwiftPMTestFail

Reproducer Repo for Swift-PM Build Failures
Swift
1
star
25

TyperBot

JavaScript
1
star