nicklockwood / iRate

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#irate
Other
4.1k stars 733 forks source link

Initializing the shared instance in class load makes subclassing impossible #229

Open sebastianludwig opened 8 years ago

sebastianludwig commented 8 years ago

I recognize the fact that an early as possible hook is necessary to let iRate register itself as UIApplicationWillEnterForegroundNotification observer. However this makes it impossible to let sharedInstance instantiate a subclass - it's always going to be an instance of iRate. See this SO-Post for a detailed description of how +load works.

This issue is related to #224.

Not sure how to resolve this...