What's NSError **?
What's NSError **?
- Subject: What's NSError **?
- From: Jason McInnes <email@hidden>
- Date: Thu, 13 Nov 2003 11:24:23 -0800 (PST)
OK, another fundamental question which I should know
the answer to, but...I'm new.
Anyway, the method declaration
+ (NSData *)sendSynchronousRequest:(NSURLRequest
*)request returningResponse:(NSURLResponse **)response
error:(NSError **)error
calls for an NSError ** and an NSURLResponse **...
Are these handles (pointers to pointers)? How do I
allocate those in Objective C?
I am assuming that when I call sendSynchronousRequest
I have to pass in allocated objects, rather than
unallocated handles. (I tried sending in unallocated
handles and got a bad access error.)
Since sendSynchronousReponse is supposed to set the
response and error by reference if necessary, how do I
construct the objects to pass in?
Jason
=====
Jason McInnes
2 Degrees
Cell: 206.849.3680
Email: email@hidden
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.