Tag: Cocoa

More CoreGraphics Hackery

Alacatia Labs, Inc. bring you the most thorough investigation of undocumented CoreGraphics functions to date, with CGSInternal.

There’s a subversion repository as well if you’re keen to stay up to date.

Modifier flags during app launch

Unfortunately, [[NSApp currentEvent] modiferFlags] can’t be used to determine if any modifier keys were held down during launch. To accomplish this, it seems one must delve into the world of Carbon.

Continue Reading Modifier flags during app launch

CTGradient code bloat

While getting rid of extraneous junk in an application package is easy using Trimmit, the only way to prevent "code bloat" (and accompanying excess RAM and CPU usage) is through good programming practices. Where most developers fall short is in poor optimization of borrowed code. Let’s take CTGradient as an example as it’s well known and used (or more accurately, abused) in dozens of applications.

Continue Reading CTGradient code bloat

Eliminate Bloatware

The Vikings left their trash on the ground - Mac developers are stuffing theirs into their apps.

Continue Reading Eliminate Bloatware

Javascript does Cocoa too

Running Objective-C code from Javascript

Java, Python and Ruby can access Cocoa APIs and Objective-C classes. What about the super-extensible yet severely under-appreciated Javascript? With the WebKit framework, you can access Objective-C from any script present in a HTML document.

Continue Reading Javascript does Cocoa too

Cocoa Animation Effects

I wrote this app about 8 months ago, and it’s managed to find itself on Youtube.

Continue Reading Cocoa Animation Effects