• 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: Library Include Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Library Include Questions


  • Subject: Re: Library Include Questions
  • From: Roland King <email@hidden>
  • Date: Sat, 21 Sep 2013 08:03:54 +0800

On 21 Sep, 2013, at 12:42 am, Fritz Anderson <email@hidden> wrote:

>
> By the way, going the other way: The clang in Xcode 5 implements modules and enables them by default in new projects (CLANG_ENABLE_MODULES). http://clang.llvm.org/docs/Modules.html says the feature is experimental, but there it is. The upshot is that if you #import <CoreImage/CoreImage.h>, clang will automatically add CoreImage.framework to the link phase. Don't rely on this if you share the project with someone using an earlier version of the compiler. I don't know whether the #imports in UIColor and UIImage are sufficient.
>
> 	— F


You can opt in on older projects by setting Enable Modules and Link Frameworks Automatically in the build settings. To really use modules in the way they were intended you should I believe use @import, so in this case it would be @import CoreImage;, I think. The compatibility flags are handy but as modules become more widely used, the real syntax adds some extra options (like importing just a few classes)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Library Include Questions
      • From: Fritz Anderson <email@hidden>
References: 
 >IB won't let me set view height (From: Rick Mann <email@hidden>)
 >Re: IB won't let me set view height (From: Luther Baker <email@hidden>)
 >Library Include Questions (From: Patrick Cusack <email@hidden>)
 >Re: Library Include Questions (From: Patrick Cusack <email@hidden>)
 >Re: Library Include Questions (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Storyboard's in Interface Builder in XCode 4.6.3
  • Next by Date: Removing ARC code from executable
  • Previous by thread: Re: Library Include Questions
  • Next by thread: Re: Library Include Questions
  • Index(es):
    • Date
    • Thread