• 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: Isolated process for each NSDocument of my app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Isolated process for each NSDocument of my app


  • Subject: Re: Isolated process for each NSDocument of my app
  • From: Graham Cox <email@hidden>
  • Date: Sat, 15 Jun 2013 10:37:40 +1000

On 14/06/2013, at 6:15 PM, Daniele Margutti <email@hidden> wrote:

> No offence guy, but seriusly I can’t. We have a compatible UIKit layer which can run on OS X. In order to mantain compatibility I need to handle UIApplication and UIScreen singleton; morehower I need to manage UIAppearance. This thing can’t work on with multiple projects at the same time so in order to work with it I need to isolate each project/UIKit instance/process from the other.


That's exactly the sort of thing I'm referring to - for whatever reason your design is incorrect, so you're now trying to "fix" that by adding more incorrectness.

The split between your controller and view layer is in the wrong place. By refactoring you can replace your view layer by a native OSX one and not attempt to add a layer ON TOP of your view layer to make Mac OSX look like UIKit.

While I haven't had much experience on iOS yet, I have made a few simple apps that work across iOS and Mac OS and by and large these share 70% or more of the controller and model code. Most of the view stuff comes from xibs and so in reality there isn't that much code that differs. I would accept that your app is a lot more complicated than mine, but nevertheless the right approach should make cross-platform deployment reasonably straightforward. It's much easier than, say, Windows/Mac cross-platform, at least the whole thing can be in Cocoa.

--Graham



_______________________________________________

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: 
 >Isolated process for each NSDocument of my app (From: Daniele Margutti <email@hidden>)
 >Re: Isolated process for each NSDocument of my app (From: Tom Davie <email@hidden>)
 >Re: Isolated process for each NSDocument of my app (From: Daniele Margutti <email@hidden>)
 >Re: Isolated process for each NSDocument of my app (From: Jens Alfke <email@hidden>)
 >Re: Isolated process for each NSDocument of my app (From: Daniele Margutti <email@hidden>)
 >Re: Isolated process for each NSDocument of my app (From: Graham Cox <email@hidden>)
 >Re: Isolated process for each NSDocument of my app (From: Daniele Margutti <email@hidden>)

  • Prev by Date: Re: assertion failure from NSScrollView
  • Next by Date: Combining pan, zoom, and rotate gestures into one?
  • Previous by thread: Re: Isolated process for each NSDocument of my app
  • Next by thread: Re: Isolated process for each NSDocument of my app
  • Index(es):
    • Date
    • Thread