For this Cocoa Code Snippet, I’d like to post a little clarification that caused me some grief a day ago. I was working on a Core Animation enabled view (in a Cocoa Touch project but this post applies to normal Cocoa as well). This view was animating after I set its frame using the following [...]
During my Comp Sci lecture yesterday, my professor mentioned a convention he follows that he learned over time in his development with Java (this tip applies to almost all languages though). You might be familiar with the usual if statement as seen below:
if(tester == null) {
// something
}
If you’ve programmed for any amount [...]
The philosophy behind my Cocoa Code Snippets has been to post little quick tips on Cocoa routines and methods and such that have caused me to do some thinking/researching/tearing my hair out. This day’s tip came up in my development of the new Todos. With an NSSearchField you might find it difficult to find out [...]
Reading through my overflowing RSS feed in NetNewsWire, I came across a relatively old article by Andy Finnell on his blog Safe From Losing Fight. The article, entitled How to implement a magic wand tool, goes into thorough discussion about the algorithm behind the magic wand tool. Andy then goes on to walk you through [...]
Continuing the Cocoa Code Snippet series, I want to put up a nice useful method I add to most of my NSWindows. Consider making it a category. This bit of code will allow your windows to fade in and out nicely when they are closed. Before Leopard and Core Animation, you had to write your [...]
If you’re like me, you’ve began the transition to coding on Leopard. After giving XCode and IB a swirl, you’re going to want to get down to coding real stuff. After starting a new project and creating a a few classes in XCode you want to instantiate your controller object. When you open up Interface [...]
As I was sitting in my RELI lecture class, I had a little idea for a quick and dirty app to make. This idea wasn’t for something useful. It was merely to play around with a different toolkit and have something cool to look at for a few minutes.
Looking at what is coming in [...]
There's plenty more to read.