• 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: Design by contract and cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Design by contract and cocoa


  • Subject: Re: Design by contract and cocoa
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 22 Jan 2014 09:37:50 -0800

On Jan 22, 2014, at 8:03 AM, email@hidden wrote:

> I  know there are some macros available, http://www.roard.com/contracts/, but I haven’t experimented further as yet

Interesting. I like the idea of dynamically creating a subclass that wraps the methods to be checked, but I don't like doing it with a bunch of macros. I wonder if there's a cleaner way to do it nowadays using newer Obj-C runtime features. (I'm assuming that code is old since the examples don't use any modern language features like properties.)

—Jens
_______________________________________________

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: Design by contract and cocoa
      • From: Herman Chan <email@hidden>
References: 
 >Design by contract and cocoa (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: [MORE} startAccessingSecurityScopedResource
  • Next by Date: Re: Design by contract and cocoa
  • Previous by thread: Design by contract and cocoa
  • Next by thread: Re: Design by contract and cocoa
  • Index(es):
    • Date
    • Thread