mikeash / MAZeroingWeakRef

Zeroing weak references for retain/release Objective-C
Other
361 stars 57 forks source link

Future iOS Compatibility #2

Closed jdewind closed 13 years ago

jdewind commented 13 years ago

It fixes the Toll Free Bridge check. The underlying class names were changes.

jdewind commented 13 years ago

Ah, indeed. Given that we transition this to a runtime check we will need to reconcile what OS we are running on since the checks will be different. E.g., checking UIDevice on iOS and MacOS using NSAppKitVersionNumber? You'll have to forgive me, my MacOS X development experience is relatively limited.

jdewind commented 13 years ago

I've pushed commits that perform a runtime check of the OS. I've verified that this works on iOS5, iOS4, and 10.6. I do not have have 10.7 installed so that still needs to be verified.

I still had to use a couple of preprocessor checks to distinguish between Mac and iOS:

jdewind commented 13 years ago

Closing. New pull request coming.