September 2004

Converting file paths from absolute to relative and rev. ?

Is there any NSString methods to convert file paths to relative to absolute and absolute to relative ?

What are the "Viewer" and "Editor" roles in Info.plist for?

In the Info.plist file, you can set up a CFBundleTypeRole for each document type, which can be either "Viewer" or "Editor". This entry describes how you can use these in Cocoa to allow importing/exporting various kinds of files, as well as implement template files ("stationeries") without having to write much code.

Determining the OS version at runtime

I want to skip some specific calls if the OS is not a defined version. How to ?