Hi,

On Thu, Jun 28, 2012 at 1:22 AM, vic <[email protected]> wrote:

> Hi,
>
> what I would like to be able to do is to develop an API (library, not app)
> on top of MonoTouch, then distribute this API to my users.
>
> Now, if I create a library (dll) using MonoTouch and give this to a user,
> does that force them into using MonoTouch as well?
>

Yes, pretty much. Note that they don't have to rewrite any existing apps in
MonoTouch, it is possible to create a an empty MonoTouch app that
immediately calls into your own ObjectiveC code and does everything there
(MonoTouch has to do some initialization at startup, which is why you can't
just use a managed library in an Xcode app - MonoTouch basically needs to
provide the native main method. Once you get control in the managed Main
method you can do whatever you want).


> What if, for whatever reason, they don't want to use MonoTouch?
>  What are my options for developing and deploying an API built on
> MonoTouch?




>
> I know that I can use the --xcode option to generate XCode project files so
> that they can embed it into an ObjectiveC app, however, it seems that this
> isn't supported and may very be removed in a future release.
>

Correct.


>
> The API I want to develop is actually meant to be cross platform. The fact
> that I want to use Mono basically boils down to developer preference (i.e
> working in C#, single code base). For the iOS version, I want to be able to
> use the MonoTouch libs.
>
>
>
> The only scenario I have come up with so far, and I don't know how feasible
> it is, is to develop the core in Mono (stock Mono, not MonoTouch), and
> embed
> that onto the target platform. Any platform specific features (like those
> provided by MonoTouch) would then need to be implemented natively for each
> platform.
>

This is basically a reimplementation of MonoTouch, so I would not recommend
this path. It is a lot of work to get it right.

Rolf
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to