A class for managing network time synchronization. More...
#import <Network/Network.h>
Instance Methods | |
(id< NetworkTimeDelegate >) | - delegate |
Gets the current network time delegate. More... | |
(void) | - setDelegate: |
Sets the network time delegate. More... | |
![]() | |
(id) | - retain |
Increases the retain count of the receiver. More... | |
(void) | - release |
Decreases the retain count of the receiver. More... | |
(id) | - autorelease |
Adds the receiver to the autorelease pool. | |
![]() | |
(void) | - dealloc |
Free resources for an existing instance. | |
(id) | - init |
Initialize the instance, after allocation. More... | |
(Class) | - class |
Returns the class of the instance. More... | |
(Class) | - superclass |
Returns the superclass of the instance. More... | |
(BOOL) | - isEqual: |
Compares the receiver to another object for equality. More... | |
(BOOL) | - isKindOfClass: |
Returns a Boolean value that indicates whether the receiver is an instance of a given class. More... | |
(BOOL) | - conformsTo: |
Checks if the receiver's class conforms to a protocol. More... | |
(NXString *) | - description |
Returns a string that represents the instance. More... | |
![]() | |
(BOOL) | - respondsToSelector: |
Checks if the receiver responds to a selector. More... | |
Class Methods | |
(id) | + sharedInstance |
A shared instance of the network time manager. More... | |
![]() | |
(id) | + allocWithZone: |
Allocates a new instance of an object in a specific memory zone. More... | |
![]() | |
(void) | + initialize |
Performs one-time initialization for the class. More... | |
(id) | + alloc |
Allocate a new class instance. More... | |
(Class) | + class |
Returns the class object. More... | |
(Class) | + superclass |
Returns the superclass of the class. More... | |
(const char *) | + name |
Returns the name of the class. More... | |
(BOOL) | + conformsTo: |
Checks if the class conforms to a protocol. More... | |
(NXString *) | + description |
Returns a string that represents the class. More... | |
Additional Inherited Members | |
![]() | |
id | _zone |
The memory zone where the object is allocated. | |
unsigned short | _retain |
The retain count of the object. | |
id | _next |
The next object in an autorelease pool. | |
![]() | |
Class | isa |
A pointer to the object's class structure. More... | |
A class for managing network time synchronization.
Definition at line 19 of file NXNetworkTime.h.
- (id<NetworkTimeDelegate>) delegate |
Gets the current network time delegate.
This method returns the object that serves as the network time delegate.
- (void) setDelegate: | (id< NetworkTimeDelegate >) | delegate |
Sets the network time delegate.
delegate | The object to set as the network time delegate, or nil to remove the current delegate. |
The delegate object will receive network time-related callbacks when the time is updated from the network. The delegate should conform to the NetworkTimeDelegate protocol.
+ (id) sharedInstance |
A shared instance of the network time manager.
This variable holds the current network time manager instance that is being used. It is automatically set when a network time manager is created.