Crooked Spin

Archive for the ‘Programming’ Category

Programming

February 4, 2008

Refactoring

I found a bug today with Xcode’s refactoring tool (radar://5723465) that could be a headache if you don’t watch for it. If you refactor the name of a method, calls to used through an @selector, like [self performSelectorOnMainThread:@selector(someMethod:) withObject:obj waitUntilDone:NO], will not be changed. You have to pick those up yourself. This [...]

Programming

December 15, 2007

Changes

Developers, keep an eye out for Changes. I saw a demo of it last night and I think most of you are going to want it. It’s really cool.

Programming

November 9, 2007

DockExtras

The Mysteries of iCal, Revealed! (Via Jens Ayton.):

One of the minor yet shiny new features of Mac OS X 10.5 is that iCal’s dock icon now shows the correct date even when iCal is not running. Some assumed this to be hard-coded functionality in the dock, but a few brave souls – well, one, [...]

Programming

November 7, 2007

November Cocoaheads

The November Phoenix Cocoaheads meeting is tomorrow night at 7. This months topic is Cocoa Bindings and I’m going to be giving the presentation. So if you want to see me stumble through a talk, stop on by. =)
Location:
Target Training International
16020 N 77th St
Scottsdale AZ 85260
United States

Programming

November 6, 2007

NSOperation and NSOperationQueue tutorial

Drew McCormack has up what looks to be a great tutorial on the new NSOperation and NSOperationQueue classes for threading in Cocoa. The classes promise to simplify threading and make it easier to implement well behaved, multi-threaded apps.

Programming

October 15, 2007

F-Script in 20 Minutes

Tags: , ,

Philippe Mougin:
F-Script is an open-source scripting layer dedicated to Cocoa. If you aren’t using it yet, this is your chance to learn how it can improve your productivity as well as those of the users of your own Cocoa applications. In this article, our goal will be to produce a nice little animation using fancy [...]

Programming

October 8, 2007

Phoenix Cocoaheads

Tags: , ,

A Phoenix Cocoaheads chapter has finally started up! The first topic will be “Beginning Cocoa
Development” and will involve setting up and running Xcode through
learning how to develop in Cocoa. Bring any projects you’ve been
working on and would like to show off!
Date: October 11th, 2007
Time: 7-9pm (we’ll hit a local watering hole after the meeting [...]

Programming

March 1, 2007

Wildcard Side

I’ve been having some more fun with NSPredicates.  They have a really annoying “feature” in 10.4 that gave me a bit of a headache and will hopefull be changed before long.  According to the Predicate Programming Guide:
In Mac OS X v10.4, wildcard characters do not match newline characters.
I took that to mean that the wildcard portion of [...]

Programming

January 2, 2007

Predicate matching

It looks like I ran into a major difference tonight between fetch requests and filtering an array on how predicates are evaluated. I’ve been using predicates that look like [NSPredicate predicateWithFormat:@"department == %@", [someDepartment objectID]] in CoreData fetch requests with no problems. If I used that predicate on against the employee entity, I’d [...]

Programming

November 12, 2006

NSURLProtocol loading

I’m working on an app that loads a WebView with data using a custom NSURLProtocol and uses CoreData. Tonight I switched the CoreData store from XML, which I use while I’m still playing around with the model, to an SQLite store. Everything looks good until I start changing the selection that feed the [...]