M@'s Musings

Pontificus Maximus

M@ McCray

I'm the creator of the webcomic ZooDotCom, and a web developer.

This is where I post random thoughts/images.

Enjoy!

 

Nuapp

Nuapp is a simple script (written in Nu, of course) that generates a skeleton Nu application. Check it out here: http://pastie.textmate.org/138976

You'll probably want to customize it. For instance, I doubt you'll want to use my "Requisite Beta Disclaimer".

Posted
 

Snippet: Compiling XIBs into NIBs in your Nukefile

Here's a function I use in my Nukefile to compile XIBs into NIBs:

(function compile-xibs-from-to (xibs to_path)(if (and (!= target "clobber") (!= target "clean"))(then(SH "mkdir -p #{to_path}")((filelist xibs) each:(do (xib)(set nib (xib stringByReplacingPathExtensionWith:"nib"))(SH "ibtool #{xib} --compile #{to_path}/#{( nib fileName )}")))(filelist "^#{to_path}/[^/]*.nib$"))(else nil)))(set @nib_files (compile-xibs-from-to "^resources/views/[^/]*.xib$" "build/nibs"))

It uses ibtool to compile the .xib into a .nib:

ibtool source.xib --compile target.nib
Posted
Theme by Cory Watilo.
More great Posterous themes at themes.posterous.com.