Documentation

SCKProject documentation

SCKProject : NSObject

AuthorsGenerated by builder
Declared inSCKProject.h

Overview

SCKProject represents an IDE project that tracks several source files usually put together in a directory.

In addition, SCKProject provides access to the program components declared in the project files. See -classes , -functions and -globals .

Custom presentation in the IDE source list (or similar UI) are supported by setting a custom project content class, that implements the collection protocols on the behalf of SCKProject instance. The collection returned by -content depends on the class set with -setContentClass: .


Default

- (id) initWithDirectoryURL: (NSURL *)aURL sourceCollection: (SCKSourceCollection *)aSourceCollection

Initializes and returns a new project based on the directory URL (to resolve relative paths) and the provided source collection to retrieve the SCKFile objects.

A source collection can be shared between several projects (it caches SCKFile objects).

When aSourceCollection is nil, raises a NSInvalidArgumentException.

    - (void) addFileURL: (NSURL *)aURL

    Adds the file that corresponds to the URL to the project.

    When the URL is nil, raises a NSInvalidArgumentException.

      - (void) removeFileURL: (NSURL *)aURL

      Removes the file that corresponds to the URL from the project.

      When the URL is nil, raises a NSInvalidArgumentException.