102Info.plist

Info.plist with an automatic pop-up of all possible values. Nice.

100jQuery & WordPress

http://wordpress.org/support/topic/226935

The Prototype library was added to WordPress first, so the '$' is set aside for all Prototype functionality. WordPress makes the coder use 'jQuery' in place of '$'. Therefore the first few lines of code should appear as:

98PHP-cgi wrapper

http://wordpress.org/support/topic/217411

http://www.pair.com/support/knowledge_base/authoring_development/system_cgi_php-cgiwrap.html

95iPhone Proximity Sensor

http://arstechnica.com/apple/news/2008/11/ars-investigates-does-google-mobile-use-private-apis.ars

hmm. interesting.

How does that relate to iPhone OS 3.0?

89oF Add-ons

Seems the link on the oF download section to the Add-ons page is a bit dated. The latest version of the page seems to live here: http://addons.openframeworks.cc

Ok, excuse moi, a mental glitch. "FAT" refers to the version PLUS the add-ons. And not to FAT binaries of the age of 68K to PowerPC migration yore. (If this does not tell one's age, I don't know what...)

87Absolute Time

Several ways:

CFAbsoluteTime abso = CFAbsoluteTimeGetCurrent(); NSTimeInterval inter = [NSDate timeIntervalSinceReferenceDate];

Plus other, more unix intrinsic methods like gettimeofday and mach_absolute_time. The above mentioned methods shall suffice for our needs.

85Calling ImageMagick from PHP

Getting ImageMagick to work by calling system() in PHP turned out to be more troublesome that originally assumed. Of course, Safe-Mode has be off, the dirs need to have the appropriate permission, and the absolute paths to 'convert' and your files should be set.

But still, it would not work. Despite executing directly in the shell quite nicely. The revelation came late, but better than never:

IM apparently hate single quote ' ', and absolutely insists on double quotes " " to wrap it's arguments in.

Can not really say, that this is well thought out... Anyways...

81NSZombies

Finding Memory Leaks If you fix a leak and your program starts crashing, your code is probably trying to use an already-freed object or memory buffer. To learn more about memory leaks, see Finding Memory Leaks. You can use the NSZombieEnabled facility to find the code that accesses freed objects. When you turn on NSZombieEnabled, your application logs accesses to deallocated memory, as shown here: 2008-10-03 18:10:39.933 HelloWorld[1026:20b] *** -[GSFont ascender]: message sent to deallocated instance 0x126550 To activate the NSZombieEnabled facility in your application: 1. Choose Project > Edit Active Executable to open the executable Info window. 2. Click Arguments. 3. Click the add (+) button in the “ Variables to be set in the environment” section. 4. Enter NSZombieEnabled in the Name column and YES in the Value column. 5. Make sure that the checkmark forthe NSZombieEnabled entry is selected.

http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/iPhone_Development.pdf, page 55

Also, from Hillegass suggests to set the CFZombieLevel to 16. Cocoa Programming for OSX, 3rd Edition. Page 92

43[UIColor clearColor]

A shortcut to transparency.

[UIColor clearColor]

78NSMutableArray & retain

A beginner's mistake:

.h @interface { NSMutableDictionary myDict; } @property (nonatomic, retain) NSMutableDictionary myDict;

*.m @synthesize myDict; ...

myDict = [[NSMutableDictionary dictionaryWithObjectsAndKeys: ..., ..., nil] retain];

If NSMutableDictionary is created with NSMutableDictionary dictionaryWithObjectsAndKeys, and it should be retained, it has to been sent a retain message explicitly.

No alloc, no init, no retain...