layervault / LVDebounce

An Objective-C library for debouncing NSTimers
MIT License
14 stars 6 forks source link

[super initialize]; #6

Closed colasbd closed 9 years ago

colasbd commented 9 years ago

Why don't you call [super initialize] in initialize?

codecaffeine commented 9 years ago

You don’t need to according to the docs because the runtime already send the message to the superclass:

The runtime sends the initialize message to classes in a thread-safe manner. Superclasses receive this message before their subclasses.

Apple used to explicitly say to not call super, now they say the super class may be called multiple times.

colasbd commented 9 years ago

+1

colasbd commented 9 years ago

Hi @codecaffeine. This pod has inspired a pod (not pushed yet). https://github.com/colasjojo/CBDActionBlocker