Tag Archives: Cocoa

Some thoughts on the Responder Chain

I had a lot to do these days and did not manage to keep up with the blog. Very busy time at the office before Christmas. Luckily, I’ll get my vacation soon by I swear I will not spend it on much anything else than reading paper books. And books which are not about programming, …

Split NSArray based on characters

Arrays are omnipresent. As I needed a snippet to make a string into an array of values, I thought would be helpful to share this for beginners. For example, take a string variable like, Create an array variable “array1” as:- I used the for loop to know the array1 values, which is displayed in Console …

NSString initWithBytes:length:encoding:

NSString initWithBytes:length:encoding instance method. A quick example. Uses a NSData object from the content of my blog’s first page and displays the string in an NSTextView outlet: The result: A variant, with a char array: The result:

Chasing Zombies in XCode 4

Ok, this will be a short one. Probably I will create a category like “code snippets and hints” to include all these small articles. This is about zombies in your coding projects and how to chase them. Enabling a project to trace zombies is different in XCode 4 than in previous versions. There is a …

How to use XCode 4 Exception Breakpoints

I will probably write a longer article on exception handling in XCode, for now just a quickie: how to use XCode 4 exception breakpoints, use the breakpoint customization features and get useful information for debugging. Usually when the app is crashing, a lot of cryptical mumbo-jumbo is displayed in the console. You have to dig the …

Core Animation documentation revisited

January brings updated documentation from Apple and I want to share the link to the  completely rewritten Core Animation Programming Guide. The release notes include reference to a “Major revamp, reorganization, and expansion to cover modern Core Animation behavior in iOS and OS X”. Just in time, as some of my projects rely on this. …

NSOutlineView — Inside Out 2

Some good months ago I started a series on NSOutlineView that I didn’t imagine it will stir such an interest. To my astonishment, googling NSOutlineView ranks my post fourth in the search, immediately after Apple’s official documentation and some other two links: This intriguing situation (nevertheless inspiring for me) might have to do with the …