Adds an array of cookies to the receiver if the receiver’s cookie acceptance policy permits.
Original signature is '- (void)setCookies:(NSArray *)cookies forURL:(NSURL *)theURL mainDocumentURL:(NSURL *)mainDocumentURL'
Available in Mac OS X v10.2 with Safari 1.0 installed and later.
Declaration Syntax
Parameters
- cookies (NSArray)
- The cookies to add.
- theURL (NSURL)
- The URL associated with the added cookies.
- mainDocumentURL (NSURL)
- The URL of the main HTML document for the top-level frame, if known. Can be nil. This URL is used to determine if the cookie should be accepted if the cookie accept policy is NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)