• 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: Protocols and the +initialize class method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protocols and the +initialize class method


  • Subject: Re: Protocols and the +initialize class method
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 23 Aug 2013 12:02:48 -0700

On Aug 23, 2013, at 10:30 AM, David Duncan <email@hidden> wrote:

> On Aug 23, 2013, at 2:49 AM, Kevin Meaney <email@hidden> wrote:
>
>> I have a protocol where I would like to include the class method +(void)initialize as being required. This way all classes that conform to the protocol have to implement  initialize as part of the protocol. I suppose I'm wondering if anyone perceives any problem with doing this?
>
> What is it that you are actually trying to achieve by doing this?

+1. This doesn’t make sense to me. The +initialize method is purely part of the internal implementation of a class; it has no external visibility or meaning. Protocols are all about external meaning, with no assumption of a particular implementation.

—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


References: 
 >Protocols and the +initialize class method (From: Kevin Meaney <email@hidden>)
 >Re: Protocols and the +initialize class method (From: David Duncan <email@hidden>)

  • Prev by Date: Re: How to observe validity of NSTextField+NSNumberFormatter?
  • Next by Date: Re: Protocols and the +initialize class method
  • Previous by thread: Re: Protocols and the +initialize class method
  • Next by thread: Re: Protocols and the +initialize class method
  • Index(es):
    • Date
    • Thread