Re: [devel@lists.monobjc.net] iPhone / iPad ?

2011-07-22 Thread Laurent Etiemble
NB: Please, be sure to subscribe before sending on the list as it is
restricted to subscribers (mainly to avoid the spam).

-- Message transféré --
From: Matt Emson memson.li...@googlemail.com
To: devel@lists.monobjc.net devel@lists.monobjc.net
Date: Thu, 21 Jul 2011 20:37:43 +0100
Subject: Re: [devel@lists.monobjc.net] Re: Delivery to the mailing list [
devel@lists.monobjc.net] failed


Sent from my iPhone 4

On 21 Jul 2011, at 15:18, Erik Touve eto...@sbcglobal.net wrote:

Thanks for all the posts.

So the license part (due to statically linking) is still the major barrier
for the community.


Yes. To static link, you need to buy a commercial mono license. To use the
runtime without a static compilation, it is free, but licensed LGPL, which
will be disallowed from the AppStore. Sorry, I didn't explain properly
earlier.

M


2011/7/21 Erik Touve eto...@sbcglobal.net


 Thanks for the reply.

 I was interested in hearing your thoughts on it.

 Agreed that tools would need a lot of work.  I wasn't aware of the
 licensing issue - which makes development a moot point.

 Sigh.

 --
 *From:* Laurent Etiemble laurent.etiem...@monobjc.net
 *To:* devel@lists.monobjc.net
 *Sent:* Thu, July 21, 2011 7:55:39 AM

 *Subject:* Re: [devel@lists.monobjc.net] iPhone / iPad ?

 Hello,

 There are several points before running Monobjc on an iOS device:
 - Getting Mono to build and run on iOS (feasible with the right switches)
 - Getting the native part of Monobjc to build and run on iOS (one caveat is
 libFFI, but is seems that there is now a support for iOS devices)
 - Be able to link and shrink all the assemblies so the IL code is the
 smallest one (this is the hardest part)
 - Wrapping everything into an executable (this looks like the embedding
 done on the Mac), and link statically with Mono.

 IMHO, the tooling part is the one that requires the heavy work. In
 addition, the last time I took a look, a license was needed to use the
 static linking of Mono.

 Regards, Laurent Etiemble.

 2011/7/18 Erik Touve eto...@sbcglobal.net

 I was wondering if it's possible to wrap the iOS SDK framework in
 monoobjc.

 Unity does an excellent job of mono on iOS.

 I fully support Ximian / Novell / now Xamarin efforts.  I love the .NET
 implementation.  But, I'm not willing for fork over $400 for in-house
 application development - something I'm not ever going to sell through any
 store.

 In theory I suppose monobjc could do the same thing as MonoTouch.  I'm
 certain there's a lot of work connecting all the dots... for example
 specialized mono compilation.

 Are there plans to do this eventually?  Can I do this myself?  Are there
 crazy licensing issues?

 -E





Re: [devel@lists.monobjc.net] iPhone / iPad ?

2011-07-21 Thread Laurent Etiemble
Hello,

I am reposting the mail, as it was blocked by the lists platform:

-- Message transféré --
From: Victoria French victoria.fre...@metrosharp.co
To: devel@lists.monobjc.net
Date: Tue, 19 Jul 2011 13:11:05 -0500
Subject: Re: [devel@lists.monobjc.net] iPhone / iPad ?
I can't speak for Novel here, but I can tell you that first there would need
to be a very special version of mono made itself. I would have to not only
be compiled to run on Apple A chips but the concept itself needs changing.

Mono would no longer be able to run without being pre-jitted at compile time
to native code (Apples rule on interprereted languages). Then the entire
framework would need to be a static library (.o) instead of a dynamic one
(ex .dylib, .dll) again Apples rule on linking to dynamic libraries.

After all the necessary changes to Mono was completed then Monobj could be
ported but again lies the dynamic linking rule.

I can see why Novell is charging for MonoTouch, the amount of work to make
this a reality is insane. Think if your app had to load the entire mono
library in memory! You would immediately end up with the phone rebooting.
You only get 128M of ram, no paging file and your entire application gets
loaded into that memory space before you can even execute a line of code.

$400 is cheaper than trying to get someone else to do this or even doing it
yourself IMO.

V


2011/7/18 Erik Touve eto...@sbcglobal.net

 I was wondering if it's possible to wrap the iOS SDK framework in monoobjc.

 Unity does an excellent job of mono on iOS.

 I fully support Ximian / Novell / now Xamarin efforts.  I love the .NET
 implementation.  But, I'm not willing for fork over $400 for in-house
 application development - something I'm not ever going to sell through any
 store.

 In theory I suppose monobjc could do the same thing as MonoTouch.  I'm
 certain there's a lot of work connecting all the dots... for example
 specialized mono compilation.

 Are there plans to do this eventually?  Can I do this myself?  Are there
 crazy licensing issues?

 -E




[devel@lists.monobjc.net] Re: Delivery to the mailing list [devel@lists.monobjc.net] failed

2011-07-21 Thread Laurent Etiemble
Re-posting...


 -- Message transféré --
 From: Matt Emson memson.li...@googlemail.com
 To: devel@lists.monobjc.net
 Date: Thu, 21 Jul 2011 14:35:03 +0100
 Subject: Re: [devel@lists.monobjc.net] iPhone / iPad ?
 **
 Okay - here is the official line (having had this discussion with Miguel
 after the MonoTouch beta went gold and they announced the steep pricing that
 pretty much made it unworkable for me and many hobbyist coders) : No, not
 possible. This is for a few reasons:

 1) Mono is licensed under many different OSS Licenses - but key parts of
 the runtime as LGPL. Basically, if you static link, you are required to get
 a commercial license.
 2) Apple do not permit GPL code in the App Store.
 3) To create iPhone apps, the mono runtime needs to be statically inked and
 the code needs to be AOT compiled to ARM native code. Therefore, you NEED a
 static bound runtime.

 When cornered, Miguel pretty much said - there is no way to legally do this
 without paying for a commercial license, and $399 was the cheapest that
 Novell had aver sold a single seat license to a developer.

 I looked at the alternatives, and they are slim. Portable.Net has even
 bigger restrictions and is very out of date now. The Microsoft
 implementations are either close, or fairly incomplete (micro.net) or not
 licensed for commercial use (the Community Source version of the compiler
 that they release a number of years ago and then updated for .Net 2.0).
 There's another option - someone created their own simple .Net runtime for
 embedded use, all free and perfectly able to work - but it has no UI kit and
 I only started to slowly look at embedding it before my dev account lapsed
 and I decided not to renew.  Google DNA or DotNet Anywhere for more
 info. I've ported it at least to an intel Mac and run on Windows, so it
 might work. The issues I had was lack of linking ability for iPhone. You'd
 need to incorporate the App kit in to the runtime to get it to function
 peoperly. I got as far as routing managed calls to native calls embedded in
 the actual exe runtime (it was a bit hacky, but it was working) so it might
 be possible...

 The other alternative would be to use the Mono compilers, but rewrite the
 runtime... DNA might work for that, or maybe at a push the Micro.Net...
 never looked at it from that angle, so can;t comment further,

 Matt

 On 21/07/2011 13:55, Laurent Etiemble wrote:

 Hello,

  There are several points before running Monobjc on an iOS device:
 - Getting Mono to build and run on iOS (feasible with the right switches)
 - Getting the native part of Monobjc to build and run on iOS (one caveat is
 libFFI, but is seems that there is now a support for iOS devices)
 - Be able to link and shrink all the assemblies so the IL code is the
 smallest one (this is the hardest part)
 - Wrapping everything into an executable (this looks like the embedding
 done on the Mac), and link statically with Mono.

  IMHO, the tooling part is the one that requires the heavy work. In
 addition, the last time I took a look, a license was needed to use the
 static linking of Mono.

  Regards, Laurent Etiemble.

 2011/7/18 Erik Touve eto...@sbcglobal.net

  I was wondering if it's possible to wrap the iOS SDK framework in
 monoobjc.

 Unity does an excellent job of mono on iOS.

 I fully support Ximian / Novell / now Xamarin efforts.  I love the .NET
 implementation.  But, I'm not willing for fork over $400 for in-house
 application development - something I'm not ever going to sell through any
 store.

 In theory I suppose monobjc could do the same thing as MonoTouch.  I'm
 certain there's a lot of work connecting all the dots... for example
 specialized mono compilation.

 Are there plans to do this eventually?  Can I do this myself?  Are there
 crazy licensing issues?

 -E







Re: [devel@lists.monobjc.net] Migrating to 3.0: - System.EntryPointNotFoundException: monobjc_install_bridge?

2011-03-18 Thread Laurent Etiemble
Hello,

The 3.0 release use a mono wrapper that replace the old script-based
launcher and the native library. If I recall well, you are using custom
build process, so you have to update it to use the new wrapper:
- The mono wrapper binary can be found in the dist/10.x folder of the
distribution. It is named runtime.
- Copy it to the MacOS folder of the application bundle and rename it to
match the application bundle name.

As for the Ids returned instead of proper object, can you send me a list so
I can fix the wrapper generator ?

Regards, Laurent Etiemble.

2011/3/18 marc hoffman m...@elitedev.com

 Hi,

 i'm trying to migrate a Monobjc 2 to v3, because im seeing weird crashes
 under Mono 2.10, and not sure if those are caused by using an old Monobjc.

 in any case, i made all the changes to the code to reflect the new APIs
 (not a step forward imho btw, most of the changes i had to make were extra
 casts for places were Id is being returned instead of the proper object. i'm
 disappointed), but when i run, i get this error:

 Unhandled Exception: System.TypeInitializationException: An exception was
 thrown by the type initializer for Monobjc.ObjectiveCRuntime ---
 System.EntryPointNotFoundException: monobjc_install_bridge
  at (wrapper managed-to-native) Monobjc.NativeMethods:InstallBridge ()
  at Monobjc.ObjectiveCRuntime..cctor () [0x0] in filename unknown:0
  --- End of inner exception stack trace ---
  at CocoaApplication1.Program.Main () [0x0] in filename unknown:0

 (the proper dylib is deployed next to the startup binary)

 what could i be missing?


[devel@lists.monobjc.net] [ANN] Monobjc 3.0.1352.0 Release

2011-03-15 Thread Laurent Etiemble
Hello,

I am proud to announce that a new release of Monobjc bridge is available (
http://www.monobjc.net/). The Monobjc bridge provides the necessary tools to
develop and run .NET applications (written in C#, VB.NET http://vb.net/,
etc.) that interact with Objective-C frameworks and libraries under Mac OS
X. Existing Objective-C classes can be used in .NET code in an almost
transparent manner.

What's new in the 3.0.1352.0 release:
- New core runtime bridge
- Support of Mac OS X 10.5/10.6 APIs (Foundatio, AppKit, WebKit, QTKit,
Quartz, etc.)
- Support for categories
- MonoDevelop addins are now compatible with MonoDevelop 2.4/2.6
- New set of NAnt tasks for easy Continuous Integration

Check out:
- Downloads: http://www.monobjc.net/index.php?page=downloads
- Tutorials : http://www.monobjc.net/index.php?page=tutorials
- Samples: http://www.monobjc.net/index.php?page=samples
- Programming Guide: http://www.monobjc.net/index.php?page=programming-guide
 http://www.monobjc.net/index.php?page=programming-guide- MonoDevelop
Addins: http://www.monobjc.net/index.php?page=monodevelop-addins

Feedback, remarks and donations are welcomed !!!

Regards, Laurent Etiemble.


Re: [devel@lists.monobjc.net] NSMatrix GetRowColumnAtPoint

2010-08-14 Thread Laurent Etiemble
Hello,

It seems to be a problem in the way the binding is done for
GetRowColumnForPoint. It should use by-ref integers instead of integers. I
will take a look at it. Can you log a bug in the tracker (
http://tracker.monobjc.net) ?

Regards, Laurent Etiemble.

2010/7/30 Fluffy D. Bunny fluffydevilbu...@gmail.com

 Hi All,

 I have subclassed NSMatrix which is working fine and I have added the
 following code.

 [ObjectiveCMessage(rightMouseDown:)]
 public override void RightMouseDown (NSEvent theEvent)
 {
 NSPoint location = this.ConvertPointFromView(theEvent.LocationInWindow,
 null);
  int row = 0;
 int column = 0;
  bool result = this.GetRowColumnForPoint(row, column, location);
 this.SendMessageSuper(ThisClass, rightMouseDown:, theEvent);
 }

 When I call GetRowColumnForPoint I crash with the following error:

 Stacktrace:

   at (wrapper managed-to-native) 2D864483.pinvoke
 (intptr,intptr,int,int,Monobjc.Cocoa.NSPoint) 0x4
   at (wrapper managed-to-native) 2D864483.pinvoke
 (intptr,intptr,int,int,Monobjc.Cocoa.NSPoint) 0x4
   at 2D864483.objc_msgSend (intptr,intptr,object[]) 0x000c9
   at Monobjc.Bridge.Generators.DynamicMessagingGenerator.SendMessagebool
 (string,intptr,intptr,object[]) 0x001ac
   at Monobjc.ObjectiveCRuntime.SendMessagebool
 (Monobjc.IManagedWrapper,string,object[]) 0x00078
   at Monobjc.Cocoa.NSMatrix.GetRowColumnForPoint
 (int,int,Monobjc.Cocoa.NSPoint) 0x000cb

 Am I calling this wrong?

 Any help on this would be appreciated. I need to get the cell that was
 clicked on.

 Thanks

 FdB



[de...@lists.monobjc.net] [ANN] Monobjc 2.0.505.0 Release

2010-06-07 Thread Laurent Etiemble
Hello,

I am proud to announce that a new release of Monobjc bridge is available (
http://www.monobjc.net/). The Monobjc bridge provides the necessary tools to
develop and run .NET applications (written in C#, VB.NET http://vb.net/,
etc.) that interact with Objective-C frameworks and libraries under Mac OS
X. Existing Objective-C classes can be used in .NET code in an almost
transparent manner.

What's new in the 2.0.505.0 release:
- New QuartzComposer framework.
- Five new sample applications.
- Fix of the embedding task.

As usual:
- Downloads: http://www.monobjc.net/index.php?page=downloads
- Tutorials : http://www.monobjc.net/index.php?page=tutorials
- Samples: http://www.monobjc.net/index.php?page=sample-applications
- Programming Guide: http://www.monobjc.net/index.php?page=programming-guide

Feedback, remarks and donations are welcomed !!!

Regards, Laurent Etiemble.


Re: [de...@lists.monobjc.net] Newbie trying tutorial console app

2010-04-06 Thread Laurent Etiemble
Hello,

For the point 1, you have spotted a typo in the listing !!! The generic
parameter was swalloded as a HTML tag, so it has disappeared. I have fixed
the listing to be correct.

For the point 2, you need to copy the native libraries libmonobjc.1.dylib
and libmonobjc.2.dylib into the lib folder. The screenshots are a bit
out-of-date (so they don't appear), but the text is accurate.

Regards, Laurent Etiemble.

2010/4/6 Javier Soques jsoq...@gmail.com

 Hello, I'm an experienced Windows .Net developer and have some experience
 with Mono in Linux. I'm just starting OS X development and I am trying out
 the console app in the tutorial (
 http://www.monobjc.net/index.php?page=console-application). The nant.build
 fails with the line where CastTo() is called:

 ***
 error CS0411: The type arguments for method
 `Monobjc.Id.CastToTInstance()' cannot be inferred from the usage. Try
 specifying the type arguments explicitly
   [csc] Compilation failed: 1 error(s), 0 warnings
 ***

 So I commented that line just to see if it compiles. It compiles but when I
 run the command 'mono HelloFoundation.exe' at the /dist folder I get library
 not found errors.

 ***
 ~/Projects/MonoObjc/HelloFoundation/dist jsoques$ mono H
 elloFoundation.exe

 Unhandled Exception: Monobjc.ObjectiveCException: The 'libmonobjc.1.dylib'
 library was not found. Please check that you have correctly installed it.
 --- System.DllNotFoundException: @executable_path/libmonobjc.1.dylib
   at (wrapper managed-to-native)
 Monobjc.Runtime.ObjectiveC10.NativeMethods:hook_thread_lifecycle ()
 ***

 The LD_LIBRARY_PATH is .

 I'm running OS X 10.4.11 and Mono version 2.6.3

 I searched the support archives if anybody else had the same problem to no
 avail. Any help would be appreciated.

 Thanks

 --
 Javier Soques





[de...@lists.monobjc.net] [ANN] Unofficial installer for Monobjc

2010-03-29 Thread Laurent Etiemble
Hello,

Eric Butler (http://www.twitter.com/codebutler), who is the main author of
the MonoDevelop addin for Monobjc, has made an unofficial installer package
for Monobjc. It can be found at:
http://codebutler.github.com/monodevelop-monobjc/

Feel free to try it and report some feedback.

Regards, Laurent Etiemble.