• 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: WTF is happening?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WTF is happening?


  • Subject: Re: WTF is happening?
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 16 Dec 2014 20:49:52 +0100

On 15 Dec 2014, at 13:42, Jean-Daniel Dupas <email@hidden> wrote:
>> Apart from completely re-thinking his approach. E.g. NSImageRep, AFAIK, simply has each image representation subclass add itself to an NSArray from its +initialize method. I'd think that'd be less fragile than walking the entire class list.
>
> I fully agree on that. Relying on class iteration is generally a design flaw. It is too fragile to be used in a reliable and futur proof way.
> But I don’t think you can rely on +initialize to register subclasses as initialize will not be called until the someone try to use the target class (or one of it’s subclass).

Doh! You're right! I mixed up +initialize and +load here.
_______________________________________________

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: 
 >Re: WTF is happening? (From: Phillip Mills <email@hidden>)
 >Re: WTF is happening? (From: Kyle Sluder <email@hidden>)
 >Re: WTF is happening? (From: "Gary L. Wade" <email@hidden>)
 >Re: WTF is happening? (From: "Gary L. Wade" <email@hidden>)
 >Re: WTF is happening? (From: Charles Jenkins <email@hidden>)
 >Re: WTF is happening? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: WTF is happening? (From: Uli Kusterer <email@hidden>)
 >Re: WTF is happening? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Issues with applications running on background (Alarm Application)
  • Next by Date: Re: PList Data Typing
  • Previous by thread: Re: WTF is happening?
  • Next by thread: Re: WTF is happening?
  • Index(es):
    • Date
    • Thread