Archive for the 'Code' Category

RooAlertView

Friday, November 18th, 2011

On the twitters, friend Justin Driscoll mentioned: iOS needs a block-based UIAlertView. So many currently-delegate based interfaces would be better served by block callbacks. I’ve wanted the same. I’ve also wanted to contribute more open source code. With some time on my hands, I threw together RooAlertView. As I mention in the README, I’m not [...]

Uncrustified

Thursday, August 5th, 2010

While looking for how to setup user scripts in Xcode 4 I stumbled into Tony Arnold’s Xcode-4-Uncrustify-Automator-Services on github. Creating a service with Automator answered my original, but the real find was uncrustify. From the uncrustify website: The goals of this project are simple: Create a highly configurable, easily modifiable source code beautifier. Since Tony [...]

Force Google’s ClientLogin to Require a CAPTCHA

Saturday, September 20th, 2008

I’ve been working with Google’s Account Authentication API lately. Specifically working with ClientLogin. One problem I ran into is that ClientLogin says that it may return a response of 403 with an error of “CaptchaRequired”. When that happens you’re supposed to display the provided CAPTCHA image to the user and have them give the answer. [...]

Growl When Done

Thursday, April 3rd, 2008

I was waiting for a MySQL migration to finish when I said to a friend: “mysql should have growl support to tell me when a lengthy operation is done”. 10 seconds later that became: “Even better, there should be a command like ‘time’ that would growl when whatever command you give it is done”. 3 [...]

I’m Talking RubyCocoa Tonight

Wednesday, January 31st, 2007

I’m going to be showing some slides (and talking over the slides) and doing a demo of RubyCocoa tonight for the Boise ruby brigade. I’ll post the code and slides tomorrow for anyone that might care. Hopefully someone learns something (minimally, I think I’ll get a lot out of it)

Introducing TraineoWeight.wdgt

Saturday, January 20th, 2007

Update: The traineo guys provided an API and I updated the widget. See: TraineoWeight.wdgt Updated Like most Americans I’d prefer to be less fat. To help me with that goal I’ve been logging my weight on traineo.com. They offer plenty more than just weight tracking, but I haven’t gotten into all that quite yet. Anyway, [...]

Time Out Your Beta App X Days From When it was Built

Friday, June 9th, 2006

I’m working on an application that will be going into a private beta pretty soon, followed by a public beta. One of the things I wanted to do was make sure the application stopped working after 30 days from when it was built. This is to make sure the beta testers are running the latest [...]

Mistakes I Made Using Bindings Without Core Data

Wednesday, June 7th, 2006

Key-Value Coding is part of the magic behind Cocoa’s bindings. Up until yesterday I had only been binding to an ObjectController or to an ArrayController backed by Core Data. This is very powerful, but bindings pre-date Core Data so clearly not a necessity. So yesterday I went to bind an NSProgressIndicator’s ‘isIndeteriminate’ to a BOOL. [...]

Getting Default Application Icon as NSImage

Wednesday, May 31st, 2006

To get the icon that represents an application with no custom icon (default application icon) just call: [NSImage imageNamed:@“NSDefaultApplicationIcon”];

You Can Pass ‘NO’ as a NSNumber, But You Probably Don’t Want To

Tuesday, May 30th, 2006

When using Core Data, Boolean values as an attribute are represented using NSNumber. That’s all fine and good, but it requires you to use [NSNumber numberWithBool:YES|NO] when you set the value. NO is defined as: define NO (BOOL)0 we have an issue. 0 is also ‘nil’. Just below the definition of NO we see nil: [...]


© 2006-2009 roobasoft, LLC