• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What's NSError **?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: What's NSError **?
      • From: David Remahl <email@hidden>
    • Re: What's NSError **?
      • From: Brian Webster <email@hidden>
    • Re: What's NSError **?
      • From: James Spencer <email@hidden>
  • Prev by Date: Re: Two dimensional array
  • Next by Date: Re: Two dimensional array
  • Previous by thread: Re: Migrating to keyed archiving...?
  • Next by thread: Re: What's NSError **?
  • Index(es):
    • Date
    • Thread