Instance Property


The cookie’s port list.


@property(readonly, copy) NSArray<NSNumber *> *portList;


The list of ports for the cookie, returned as an array of NSNumber objects containing integers. If the cookie has no port list, the value of this property is nil and the cookie will be sent to any port. Otherwise, the cookie is only sent to ports specified in the port list.

See Also

Getting Cookie Host Properties


The domain of the cookie.


The cookie’s path.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software