Re: Language options: Objective-C, Swift, C or C++?
Re: Language options: Objective-C, Swift, C or C++?
- Subject: Re: Language options: Objective-C, Swift, C or C++?
- From: Quincey Morris <email@hidden>
- Date: Tue, 16 Jun 2015 16:41:48 +0000
On Jun 16, 2015, at 01:36 , Kevin Meaney <email@hidden> wrote:
>
> #if os(iOS)
Ah, thanks for reminding me about that. I keep forgetting that Swift has a form of #if.
On Jun 16, 2015, at 03:22 , Maxthon Chan <email@hidden> wrote:
>
> You actually can build the OS X and iOS versions of the same framework with the same name, just keep the targets in separate projects and double-check when linking.
That’s a good approach, but I’ll have to experiment to find out how usable it is in this case. Managing separate projects means managing separate repositories (or manually forcing Xcode to stuff multiple projects in a single repository).
It’s also a bit more complicated than I said, because there are 4 targets (iOS, Mac MAS, Mac non-MAS and a data test app) and I want to use 3 different namespaces for access control. It starts to get a bit hard to manage.
What I’m actually thinking of doing is finishing the conversion using a single target, then jettisoning the framework structure and just building all the source files together. There was no real reason for the frameworks other than access control, and (in this case) there’s no real reason for the access control once the code is written.
_______________________________________________
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
References: | |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Roland King <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Quincey Morris <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Graham Cox <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Michael David Crawford <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Carl Hoefs <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: "Gary L. Wade" <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Quincey Morris <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Carl Hoefs <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Rick Mann <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Quincey Morris <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Roland King <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Quincey Morris <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Kevin Meaney <email@hidden>) |