This page contains some Cocoa samples projects, written in Objective-C and built with XCode. No support is provided, I assume you are a developper and you known how using it. You can freely use this code and add it in your projects, if you find it useful.
Pierre Molinaro <pierre molinaro at irccyn ec-nantes fr>.
Pierre Molinaro is a member of the Real-Time Sytems group from the IRCCyN Laboratory in Nantes, France. IRCCyN is an Unité Mixte de Recherche of CNRS. Other softwares from the Real-Time Systems group can be found here.
This project shows how to override NSDocument class so that a document is a package : redefine -fileWrapperOfType:error: and -readFromFileWrapper:ofType:error: methods.
The documents by the application defined by this project consists of two texts; the document package contains a firstText directory, that includes the TXT.rtfd file, and the secondText file :
The document user interface uses two text views for handling the two texts.
The archive containing the project can be downloaded here (built with XCode 2.4.1).
I had of lot of difficulties in using -setRuleThickness: method of the NSRulerView class (Mac OS 4.X). At last, I discovered the ruler is not displayed correctly if the float argument has not an integer value. Si I built a small application that hilites this feature (bug ?).
This is an window capture.
This project can be downloaded here (built with XCode 2.4.1).