Cocoanetics / DTFoundation

Standard toolset classes and categories
BSD 2-Clause "Simplified" License
805 stars 237 forks source link

Add support for app extension #95

Closed m1entus closed 8 years ago

odrobnik commented 8 years ago

This looks somewhat incomplete to me... where is DT_APP_EXTENSIONS defined?

m1entus commented 8 years ago

If you will define preprocessor macro, then this code will be skipped and app extension allow to build framework. Similar concept had AFNetworking few commits ago, but right now i see that they are marking method to be NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extensions."), but in this case it is not possible. Just check AF_APP_EXTENSIONS macro in google

odrobnik commented 8 years ago

Thanks for the explanation!

m1entus commented 8 years ago

No problem, any date when can i expect new release on Cocoapods ?

odrobnik commented 8 years ago

I am facing the problem that the pod spec does not lint because it supports tvOS but I need to download Xcode 7.1 to successfully push it to trunk... I am hoping later today.

m1entus commented 8 years ago

Cool, thanks for your work!

odrobnik commented 8 years ago

@m1entus FYI: http://www.cocoanetics.com/2015/10/dtfoundation-1-7-8/

m1entus commented 8 years ago

Greak, thanks again, are you going to also bump DTCoreText version soon ?

rogerly commented 8 years ago

Is this working for you in an app extension? I still have issues dealing with DTProgressHUDWindow since it also references [UIApplication sharedApplication]

m1entus commented 8 years ago

Have you defined DT_APP_EXTENSIONS as preprocessor marco in build settings?

rogerly commented 8 years ago

I have, and DTAsyncFileDeleter.m compiles fine, however DTProgressHUDWindow still references [UIApplication sharedApplication] so that particular class will not build properly in an extension (unless I am missing something)