Mac Developer Library

Developer

ODNode Class Reference

Options
Deployment Target:

On This Page
Language:

ODNode

An ODNode object serves as a Cocoa wrapper for an Open Directory node.

  • Creates a node object with a specified session and name.

    Declaration

    Swift

    init(session inSession: ODSession!, name inName: String!) throws

    Objective-C

    - (instancetype)initWithSession:(ODSession *)inSession name:(NSString *)inName error:(NSError **)outError

    Parameters

    inSession

    The session.

    inName

    The name of the node.

    outError

    An error reference for error details. Can be nil.

    Return Value

    The created node object.

    Discussion

    Availability

    Available in OS X v10.6 and later.

  • Creates a node object with a specified session and type.

    Declaration

    Swift

    init(session inSession: ODSession!, type inType: ODNodeType) throws

    Objective-C

    - (instancetype)initWithSession:(ODSession *)inSession type:(ODNodeType)inType error:(NSError **)outError

    Parameters

    inSession

    The session.

    inType

    The node type.

    outError

    An error reference for error details. Can be nil.

    Return Value

    The created node object.

    Discussion

    Availability

    Available in OS X v10.6 and later.

    See Also

    Node_Types

  • Returns an autoreleased node object with a specified session and name.

    Declaration

    Objective-C

    + (instancetype)nodeWithSession:(ODSession *)inSession name:(NSString *)inName error:(NSError **)outError

    Parameters

    inSession

    The session.

    inName

    The name of the node.

    outError

    An error reference for error details. Can be nil.

    Return Value

    The created node object.

    Availability

    Available in OS X v10.6 and later.

  • Returns an autoreleased node object with a specified session and type.

    Declaration

    Objective-C

    + (instancetype)nodeWithSession:(ODSession *)inSession type:(ODNodeType)inType error:(NSError **)outError

    Parameters

    inSession

    The session.

    inType

    The node type.

    outError

    An error reference for error details. Can be nil.

    Return Value

    The created node object.

    Availability

    Available in OS X v10.6 and later.

    See Also

    Node_Types