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.
Tag: Tutorial
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.
Hide in your shell
Your Mac has a UNIX core - learn to use it.
Continue Reading Hide in your shellMac developer? Clean up your app
The reason for this article should be obvious: too many OS X third party developers do an absolutely terrible job of building and packaging their applications. rixstep
Too many apps are shipped with debug symbols, uncompressed images, redundant files or generally useless rubbish that not only wastes users’ disk space, it ultimately ends up increasing the developer’s own bandwidth costs.
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.
Make the most of the iPhone SDK
The iPhone, like Safari and many other browsers, runs on WebKit, which is one of the most blazing fast, powerful, standards-compliant rendering engine ever. Although there is no official Cocoa API for iPhone app development, it’s not like we have nothing to work with. Writing web apps for the iPhone will be a pretty good experience for two reasons:
- We don’t have to worry about IE support when writing our web app
- WebKit is amazing.
Highlighted below are ten CSS rules that make WebKit extra-great. Many of the previews require a WebKit-based browser like Safari, OmniWeb or Shiira.
![[RSS feed for this tag]](http://lipidity.com/wordpress/wp-content/themes/virtuoso/res/img/feed_tag.png)