Instance Method

netService:didNotPublish:

Notifies the delegate that a service could not be published.

Declaration

- (void)netService:(NSNetService *)sender didNotPublish:(NSDictionary<NSString *,NSNumber *> *)errorDict;

Parameters

sender

The service that could not be published.

errorDict

A dictionary containing information about the problem. The dictionary contains the keys NSNetServicesErrorCode and NSNetServicesErrorDomain.

Discussion

This method may be called long after a netServiceWillPublish: message has been delivered to the delegate.

See Also

Using Network Services

- netServiceWillPublish:

Notifies the delegate that the network is ready to publish the service.

- netServiceDidPublish:

Notifies the delegate that a service was successfully published.

- netServiceWillResolve:

Notifies the delegate that the network is ready to resolve the service.

- netService:didNotResolve:

Informs the delegate that an error occurred during resolution of a given service.

- netServiceDidResolveAddress:

Informs the delegate that the address for a given service was resolved.

- netService:didUpdateTXTRecordData:

Notifies the delegate that the TXT record for a given service has been updated.

- netServiceDidStop:

Informs the delegate that a publish or resolveWithTimeout: request was stopped.