• 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
Throwing NSException in custom linked framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Throwing NSException in custom linked framework?


  • Subject: Throwing NSException in custom linked framework?
  • From: Robert Mullen <email@hidden>
  • Date: Tue, 18 Aug 2009 20:56:00 -0700

I am building a data access layer in a Cocoa Framework and calling it from a test harness. All is working well until I get to my error trapping. I throw an NSException from a called method in the Framework and the caller has a @try-@catch=@finally block but it is not getting triggered. I see objc_exception_throw at the top of the stack but do not trigger my catch block. Is it valid to throw an NSException in this way? I don't see anywhere in the docs where it says I can't but maybe I have read too fast? I don't necessarily want code help just confirmation that this should work. If so I obviously am doing something wrong. This is my first real framework so that would not be a surprise.

TIA
_______________________________________________

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: Throwing NSException in custom linked framework?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: I need to convert NSTableView data into something suitable for consumption by a spreadsheet
  • Next by Date: Re: Throwing NSException in custom linked framework?
  • Previous by thread: Re: I need to convert NSTableView data into something suitable for consumption by a spreadsheet
  • Next by thread: Re: Throwing NSException in custom linked framework?
  • Index(es):
    • Date
    • Thread