• 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: Q: An App for both OS X and iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: An App for both OS X and iOS


  • Subject: Re: Q: An App for both OS X and iOS
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 21 Dec 2011 09:50:31 -0800

On Dec 21, 2011, at 7:50 AM, Peter Teeson wrote:

> I want to start a new workspace for an app that will be for both Mac OS X and iOS.
> This will be my first iOS app.
>
> The model part of MVC is going to be common but obviously the UIs are different.
>
> Am I correct in this plan outline:
> (1) Create MacOS X project for it's UI
> (2) Create iOS project for it's UI
> (3) Create project for common model code
>
> Appropriate schemes at the project and workspace levels.
> Appropriate targets at the project levels.

Yes, that's the intended way to set up a workspace for iOS and OS X projects that share common code.  The common-model-code project will have to produce a static library for iOS, since dynamic libraries and frameworks aren't supported.

If your common-model-code project also has other resources, such as a Core Data data model and localizable strings file(s), it should put them in its BUILT_PRODUCTS_DIR (or a subfolder) and your OS X and iOS projects should copy them out of that and into their own resources.

  -- Chris

_______________________________________________

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: 
 >Q: An App for both OS X and iOS (From: Peter Teeson <email@hidden>)

  • Prev by Date: Q: An App for both OS X and iOS
  • Next by Date: Re: Cocoa-dev Digest, Vol 8, Issue 979
  • Previous by thread: Q: An App for both OS X and iOS
  • Next by thread: NSString looses Umlaute
  • Index(es):
    • Date
    • Thread