This tutorial will teach you how to make the small handle that goes on a bottom bar of some apps to resize a SplitView.
The goal of this tutorial is to teach you how to create an icon in the menu bar for your application, which when pressed, activates the main application window. An example of this can be seen in the Iconfactory’s Twitterrific. The main class you will be exploring in this tutorial is NSStatusItem. Apple’s documentation for [...]
Whenever we Cocoa devs think of NSBox, we usually think of a nice, basic container for other views, that comes with a title, right? Something that looks like this, maybe:
Well, this is only the beginning of NSBox’s flexibility. When we set Box Type to Custom, this opens up 6 properties of NSBox that we can [...]
When using a WebView object inside a Cocoa application, one might think they are limited to only displaying web pages. However, using custom CSS and JavaScript, a WebView object can become a very powerful and flexible part of a Cocoa app, while looking and working natively.
The first thing you should know is that there is [...]
In this tutorial, we discuss Files and Collections. Specifically, we talk about Cocoa collection classes, property lists, and writing them to and reading them from files.
This episode is geared towards developers who already have an understanding of Cocoa objects, and are familiar with such basic concepts as NSString and text files.
Files and Collections from I [...]
In This tutorial, we will look at the basic principles and syntax of programming in the C language. The tutorial was originally made for http://teachmecocoa.com before we merged with them.
This tutorial is geared towards those who have some programming experience in another language, and would like to understand the basics of using C.
Understanding C is [...]
Having iSight integrated into you app can be useful in a variety of ways. Whether it be taking photos in apps such as Photo Booth or capturing physical data, such as barcodes in applications like Delicious Library.
It’s another one of those unanswered questions: how do you bounce the “Downloads” stack?
When Apple first demoed Leopard, Steve Jobs made a point to mention that whenever you downloaded a new file from Safari or Mail or iChat, it would be placed into your Downloads folder, and the Downloads stack would bounce to notify you [...]
A little super-awesome Cocoa/CoreGraphics code to apply a Core Image filter to, or underneath, a window, similar to what Apple themselves use in Mac OS X v10.5 “Leopard” to create a blur under menus.
Bindings in Cocoa are very powerful and can be used to organize, lay out, and display vast amounts of data in large apps, but bindings can also be used to make things more convenient in simple applications. To demonstrate this, let’s write a simple app which counts the number of words that is being typed [...]