English 中文(简体)
1. 共享业务逻辑法与宏观专业顾问应用
原标题:Sharing business logic code between iOS and Mac OS applications

我正在考虑一项“SOS”申请,该申请也由麦克斯温特公司经营,通过Mac App Store出售。 然而,我要尽可能多地重新使用法典,以适应商业逻辑,这样,如果我用一种产品打上ug子,我就必须重新编码其他产品的一切。 这样做的最佳方式是什么? 有了通用的iPad/iPhone人,就只有两个目标,但显然,对于一个宏观顾问来说,整个结构是不同的,它使用的是完全不同的SDK。 任何建议? 谢谢!

最佳回答

这样做的最佳途径是将可可申请目标添加到你的项目中。 Go to Project> New Target and choosea>Application from the Mac OS X section. 然后,在选定新的目标后,把检查箱点击,以包括共用档案。

问题回答

你们可以做的另一件事就是把一个项目的档案作为另一个项目的参考资料。 简单地将其从源项目(实际files > 居住)拖入另一个项目。 方言会问,你是否想要复制这些档案。 页: 1 这将使第二个项目提到第一个项目的档案。 Edits进入这两个项目。

尽管如此,由于APICES与MacOS之间有一些差异,即使它们被称作是一样的。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...