Archive for the 'Software Development' Category

Preview: STNPostgreSQL.framework

I am very pleased to announce the public preview of STNPostgreSQL.framework.
STNPostgreSQL.framework is an open source Objective-C framework for accessing PostgreSQL databases in a convenient object oriented way.

The current version is pre-beta so don’t expect that much features or stability. The APIs are still subject to change!

I have a lot of ideas which will be released in future versions. If you have some questions, ideas for improvement or if you want to join me on this project please send me a mail. Thanks!

More information and download instructions can be found on the project page.

Technorati Tags: , ,

Unit Testing with Xcode

Unit testing is some kind of a controversial topic. There are many opinions by software developers whether to make unit tests and how frequently they should be used.
I don’t want to start a preach here or discuss the pros and cons of unit tests in every little detail. It’s just a little tutorial how Unit Testing works with Objective-C and Xcode.

Software needs to be tested, right? So, when is the right time to test your application?
Well, before I heard something about Unit Tests I did tests every time after I changed a function or added some functionality to my software and I think this is what most people do.
The problem is that mostly after these changes only a few parts of the application are tested. The application is/can never tested completely by the developer by hand and errors might occur when a end user uses it.
So the ideal test would be to go all through your software and test every little feature and functionality. I think that is not really possible. But this process can be automated. And at this point Unit Tests come into the play.

Technorati Tags: ,

Continue reading ‘Unit Testing with Xcode’

Late Night Cocoa Podcast

Late Night Cocoa Logo

Late Night Cocoa is a great podcast about Cocoa and Mac OS X development and if you’re interested in these topics and haven’t heard about Late Night Cocoa yet, fire up your iTunes and give it a try.

Technorati Tags: , ,

Continue reading ‘Late Night Cocoa Podcast’

Over 200 downloads of RegexTester

I must admit, I am a little surprised that my teeny tiny little software RegexTester was downloaded over 200 times in just five days (according to macupdate.com). I am very pleased and I’d like to get some reviews and opinions. :)

Technorati Tags:

New Little Helper: RegexTester

A few week ago I wrote about how the regular expression mechanism in NSPredicate can be used to validate strings.
I created a small application which exactly does that - validating strings.

RegexTester Screenshot

It’s called RegexTester (yeah, innovative name, I know) and is intended to be a help for developers who have to formulate regular expressions.
More information can be found here.

Have fun!

Technorati Tags: ,

Practice makes perfect

How can you be perfect (or at least good) at something if you don’t practice? I think, not at all. Especially when it comes to software development beeing perfect without practice is hardly possible.
So, have some practice! To get some help with that, you should visit Chris Forsythe’s website.

Technorati Tags: , , ,

Continue reading ‘Practice makes perfect’

Regular Expressions for NSString

Last weekend I was looking for different options to validate NSString objects against some regular expressions.
While there are some 3rd party classes for doing regular expressions in Cocoa and wrappers for Perl/PCRE there is a way to do that without external software. The magic word is called NSPredicate.
This approach may perhaps not be obvious because there is (at this time) no direct documentation or hint in the ADC documentation.

Technorati Tags: ,

Continue reading ‘Regular Expressions for NSString’

C Tutorial “Masters of the Void” completed

If you are looking for a good C tutorial you should definitely have a look at Uli Kusterers ‘Masters of the Void‘.

Technorati Tags: ,

Continue reading ‘C Tutorial “Masters of the Void” completed’

Weblogs about Mac OS X development

If you’re a mac developer you certainly subscribed some weblogs about Cocoa development with OS X.
Scott Stevenson created a nice new website called Cocoa Blogs. It bundles weblogs and tutorials from well known OS X developers.
The place to go for your daily Cocoa dose.

Great idea and very cool design.
Thank you, Scott.

Technorati Tags: , ,

New code snippet: STNKeychainAccess

A few minutes ago I updated the projects page. I added a subcategory Little Helpers in which I will publish some code snippets for different purposes.

The first one is an Objective-C class for accessing the keychain service in Mac OS X: STNKeychainAccess.

In the downloadable zip-file you can find a Xcode project with a small cocoa application which shows how this class can be used in your application.

Have fun!

Technorati Tags: , , ,