-

Chiron Codex: helping software engineers become centaurs. -

-
Blog
-
Podcast
-
Consulting
Category Archives: Code & Craft
Automate all the server Objective-C!
I decided it was time to stop writing WebObjects/GNUstepWeb code, and write some code that would make it easier to write WO/GSW code. With that in mind I replaced my previous component generator with a more robust generator. I also … Continue reading
Posted in Code & Craft
Tagged gnustep, objective-c, webobjects
Comments Off on Automate all the server Objective-C!
Adding components to a GNUstep web / WebObjects app
In WebObjects, Components take the role of a view controller in what passes for Cocoa’s version of MVC. Each is responsible for calculating the data that the view objects are bound to: you saw an example of this in the … Continue reading
Posted in Code & Craft
Tagged webobjects
Comments Off on Adding components to a GNUstep web / WebObjects app
Using Objective-C on the server
My talk at NSConf was about cross-platform Objective-C. Those people who I talked to after the session will know that my goal is clear. There are plenty of people out there who have learned Objective-C to get onto the iOS … Continue reading
How to TDD with CATCH
Plenty of people have asked me about the TDD framework I use. While the book Test-Driven iOS Development has code using OCUnit (for pragmatic, and previously-covered, reasons); I am currently more frequently to be discovered using Phil Nash’s CATCH framework. … Continue reading
Posted in Code & Craft
1 Comment
Why we don’t trust -retainCount
I’m pretty sure @bbum must have worn through a few keyboards telling users of StackOverflow not to rely on the value of an Objective-C object’s -retainCount. Why? When we create an object, it has a retain count of 1, right? … Continue reading
Posted in Code & Craft
Tagged ios, macos, objective-c
Comments Off on Why we don’t trust -retainCount
Synthesized ivars are private
Perhaps this isn’t news. Perhaps it doesn’t matter because you’ve provided public accessors. But here are the results anyway. #import <Foundation/Foundation.h> @interface A: NSObject @property (nonatomic, assign) int a; @end @interface B: A – (int)differentGetter; @end @interface C: NSObject @property … Continue reading
Is it an anti-pattern to use properties everywhere?
I’ve seen questions about whether to always provide accessors for ivars, and recommendations, such as in akosma software’s ObjC code standards, that say Whenever possible, do not specify ivars in the header file; use only @property and @synthesize statements instead. … Continue reading
Posted in Code & Craft
10 Comments
On home truths in iOS TDD
The first readers of Test-Driven iOS Development (currently available in Rough Cuts form on Safari Books Online: if you want to buy a paper/kindle/iBooks editions, you’ll have to wait until it enters full production in a month or so) are … Continue reading
Posted in Code & Craft
7 Comments
Android: the missed opportunities
There are a few Android devices I have respect for: the Amazon Kindle Fire is one, the B&N Nook another, and the Cisco Cius is the third. To a lesser extent, the Sony tablet also fits this category. I don’t … Continue reading
Why your security UI sucks
The principle recurring problem in user experience is creating a user interface that supports the user’s mental model of how an app works, while simultaneously enabling the actions that are actually supported by the implementation’s model of the problem domain. … Continue reading