Samond Classes Library 1.2.6-STABLE build 219
List of all members
<SCDating> Protocol Reference

Data objects communications protocol. More...

#import <SCDating.h>

+ Inheritance diagram for <SCDating>:

Instance Properties

NSString * className
 

Interaction with Data Objects

(instancetype) - initWithData:
 
(instancetype) - initWithDataWrapper:
 
(instancetype) - initWithContentsOfFile:
 
(instancetype) - initWithContentsOfURL:
 
(instancetype) - initWithContentsOfURLString:
 
(void) - writeToData:
 
(BOOL) - writeToFile:
 
(BOOL) - writeToURL:
 
(BOOL) - writeToURLString:
 
(NSData *) - data
 

Detailed Description

Data objects communications protocol.

SDK
macOS 10.6+, iOS 7.0+ GNUstep
Since
version 1.2.3

Declares methods for communicate between class instances and data objects.
Defined by the protocol methods support based operations such are writing class instances into the data objects and reading and initializing class instances from the data objects.

Method Documentation

- (NSData *) data

Returns the data object with the receiving class instance.

Returns
A data object

Reimplemented in NSObject(SCObject).

- (instancetype) initWithContentsOfFile: (NSString *)  path

Initializes a class instance using the data from the file with the specified path.

Parameters
path- the path to the source file
Returns
A newly initialized class instance

Reimplemented in NSObject(SCObject).

- (instancetype) initWithContentsOfURL: (NSURL *)  url

Initializes a class instance using the data from the specified URL.

Parameters
url- the source URL
Returns
A newly initialized class instance

Reimplemented in NSObject(SCObject).

- (instancetype) initWithContentsOfURLString: (NSString *)  urlString

Initializes a class instance using the data from the specified URL string.

Parameters
urlString- the source URL string
Returns
A newly initialized class instance

Reimplemented in NSObject(SCObject).

- (instancetype) initWithData: (NSData *)  data

Initializes a class instance using the specified data object.

Parameters
data- the source data object
Returns
A newly initialized class instance

Reimplemented in NSObject(SCObject).

- (instancetype) initWithDataWrapper: (SCData *)  data

Initializes a class instance using the specified data object wrapper.

Parameters
data- the data object wrapper
Returns
A newly initialized class instance

Reimplemented in NSObject(SCObject).

- (void) writeToData: (NSMutableData *)  data

Writes the receiving class instance into the specified data object.

Parameters
data- the destination data object

Reimplemented in NSObject(SCObject).

- (BOOL) writeToFile: (NSString *)  path

Writes the receiving class instance into the file with the specified path.

Parameters
path- the path of the destination file
Returns
YES if the operation succeeds, otherwise NO

Reimplemented in NSObject(SCObject).

- (BOOL) writeToURL: (NSURL *)  url

Writes the receiving class instance into the specified URL.

Parameters
url- the destination URL
Returns
YES if the operation succeeds, otherwise NO

Reimplemented in NSObject(SCObject).

- (BOOL) writeToURLString: (NSString *)  urlString

Writes the receiving class instance into the specified URL string.

Parameters
urlString- the destination URL string
Returns
YES if the operation succeeds, otherwise NO

Reimplemented in NSObject(SCObject).

Property Documentation

- (NSString*) className
readnonatomiccopy

A name of the receiving instance class


The documentation for this protocol was generated from the following file: