• 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: Proper way to set up constants when building an iOS framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper way to set up constants when building an iOS framework


  • Subject: Re: Proper way to set up constants when building an iOS framework
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 19 Apr 2016 13:20:58 -0400

On Apr 16, 2016, at 7:19 AM, Uli Kusterer wrote:

> A precompiled prefix header is a compile-time construct that only applies to the interior of your framework. You can't really tell people linking to your framework to add a certain prefix header. So you can use a pch for actually writing the framework implementation,

That is all I am trying to accomplish.

So, since we have to create a constants file in a framework with .h and .m files, I've never seen a .m compliment to a .pch.  I have no idea how this would work at all or how I would be able to set this up.

What I am trying to achieve is simply declare constants for all my classes within a framework (and only for the framework) and do it in one spot.

It is my understanding that in a framework we need .h and .m files to declare the constants and I have set these up.

Now, I am trying to get this constants.m imported in one area that will allow every class within my framework to have access to them.

Thanks, Uli.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Proper way to set up constants when building an iOS framework
      • From: "Gary L. Wade" <email@hidden>
    • Re: Proper way to set up constants when building an iOS framework
      • From: Jens Alfke <email@hidden>
References: 
 >Proper way to set up constants when building an iOS framework (From: Alex Zavatone <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Charles Jenkins <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Alex Zavatone <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Proper way to set up constants when building an iOS framework
  • Next by Date: Re: BOOL parameter passed as nil object
  • Previous by thread: Re: Proper way to set up constants when building an iOS framework
  • Next by thread: Re: Proper way to set up constants when building an iOS framework
  • Index(es):
    • Date
    • Thread