• 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
Re: Wrapping C functions in Objective C proxy objects: naming convention?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrapping C functions in Objective C proxy objects: naming convention?


  • Subject: Re: Wrapping C functions in Objective C proxy objects: naming convention?
  • From: Bill Bumgarner <email@hidden>
  • Date: Thu, 20 Nov 2008 09:13:23 -0800

On Nov 20, 2008, at 10:54 AM, Alexander Spohr wrote:
I’d go for #1.
If you have an error in status, throw an exception.

In this case, an exception might actually be OK, given that the library is in isolation.


However, it goes against the design patterns of Cocoa and if the code is ever refactored such that there are Foundation or AppKit frames on the stack over which the exception is thrown, the code may break.

Exceptions for non-programmer error are to be avoided.

b.bum

_______________________________________________

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


References: 
 >Wrapping C functions in Objective C proxy objects: naming convention? (From: "Austin Ziegler" <email@hidden>)
 >Re: Wrapping C functions in Objective C proxy objects: naming convention? (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: what replaces ICARegisterEventNotificationPB
  • Next by Date: Re: Wrapping C functions in Objective C proxy objects: naming convention?
  • Previous by thread: Re: Wrapping C functions in Objective C proxy objects: naming convention?
  • Next by thread: Re: Wrapping C functions in Objective C proxy objects: naming convention?
  • Index(es):
    • Date
    • Thread