Functions

The following functions are available globally.

  • Extracts just the file name, no path or extension

    Declaration

    Objective-C

    extern NSString *_Nullable DDExtractFileNameWithoutExtension(
        const char *_Nonnull filePath, BOOL copy)

    Swift

    func DDExtractFileNameWithoutExtension(_ filePath: UnsafePointer<Int8>, _ copy: Bool) -> String?

    Parameters

    filePath

    input file path

    copy

    YES if we want the result to be copied

    Return Value

    the file name

  • Undocumented

    Declaration

    Objective-C

    static inline DDColor  * _Nonnull DDMakeColor(CGFloat r, CGFloat g, CGFloat b) {return [DDColor colorWithCalibratedRed:(r/255.0f) green:(g/255.0f) blue:(b/255.0f) alpha:1.0f];}

    Swift

    func DDMakeColor(_ r: CGFloat, _ g: CGFloat, _ b: CGFloat) -> NSColor