• 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
Handling framework exceptions/errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handling framework exceptions/errors?


  • Subject: Handling framework exceptions/errors?
  • From: David Troy <email@hidden>
  • Date: Sun, 29 Jun 2008 12:56:02 -0400

Hey folks,

I am fairly new to Cocoa development, so bear with me.

I have a situation where I am loading arbitray data from network- supplied URLs. Sometimes the URLs contain Kanji unicode characters. When they do, my HTTP loading mechanism (which is built around NSURL* frameworks) dies with an exception deep inside of CFURLGetString.

Short of writing code to protect CFURLGetString from ever seeing one of these URLs, I thought the simplest thing to do would be to try to cover this section of code with a @try/@catch construct, but it seems to be having no effect. The program still crashes. I gather it is because what I'm getting is a null pointer type of issue, rather than something that generates a manageable NSException object.

Anyway, that all said, I'm just speculating. Any actual info on solving this problem would be appreciated.

Thanks,
Dave


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Handling framework exceptions/errors?
      • From: "Sherm Pendley" <email@hidden>
    • Re: Handling framework exceptions/errors?
      • From: Jens Alfke <email@hidden>
    • Re: Handling framework exceptions/errors?
      • From: "Owen Yamauchi" <email@hidden>
  • Prev by Date: Re: Methods that return autoreleased objects?
  • Next by Date: DnD in NSMatrix
  • Previous by thread: [ANN] Amber.framework, shared source repository
  • Next by thread: Re: Handling framework exceptions/errors?
  • Index(es):
    • Date
    • Thread