• 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
Common Date between Swift and ObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Common Date between Swift and ObjC


  • Subject: Common Date between Swift and ObjC
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 13 Aug 2014 00:47:11 +0700

In ObjC I used to do:
CommonDefines.h
	#define PARAMETER_A  17
and then import CommonDefines.h into all files which have to know this parameter.

But how do I make a Swift file and an ObjC file both aware of the value of PARAMETER_A?

Keeping both in sync is rather error prone; I much rather have the value in only one place (like my CommonDefines.h).

Gerriet.


_______________________________________________

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: Common Date between Swift and ObjC
      • From: Jeff Kelley <email@hidden>
  • Prev by Date: Re: How to make a LaunchAgent
  • Next by Date: Re: Common Date between Swift and ObjC
  • Previous by thread: Re: When to call super
  • Next by thread: Re: Common Date between Swift and ObjC
  • Index(es):
    • Date
    • Thread