Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C

2011-08-10 Thread Jon Hopkins
I did figure a solution, my event handler to update views was on the deceleration end of the scroll. It never gets called on the first event of a double-scroll, because it doesn't decelerate. My solution is to look at the difference, and when bigger than 1 page, to manually add the missing view,

Re: [MonoTouch] No Content in UIWebView from Local File

2011-08-10 Thread ianadavies
Yes first make sure you can see the file as content in your app BuildAction - Content Because I use XSLT Transforms I have always have had html / xml in a XDocument and use the webView.LoadHtmlString(htmlOutput.ToString()) method, and that always works for me. I have never tried using a local

Re: [MonoTouch] No Content in UIWebView from Local File

2011-08-10 Thread ianadavies
Is there an IsDir Parameter overload on the constructor for the request? if so try setting it to true. It just seems to me the browser is not finding the file with the request , Try forgetting the webview for now and try loading the file into a string using System.IO and checking with File.Exists

[MonoTouch] Monotouch json

2011-08-10 Thread peter.garner
Ive got the latest package of mono/monotouch but cant seem to get json working, their was talk json.net worked but i cant ref this in latest mono anyone else using json with monotouch latest software? -- View this message in context:

Re: [MonoTouch] SIGSEGV Crash: dyld: could not load inserted library...monotouch-fixes.dylib

2011-08-10 Thread MonkeyWorld
It's fixed, so so happy!! All I've done is install XCode 4.1, and its fixed the crashing when resigning first responder :) I reinstalled the 2.10.4 mono framework and MonoTouch 4.0.4.1 afterwards, but so so happy as this has been a huge issue for me since my app has fair bit of text input.

Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C

2011-08-10 Thread Nic Wise
Sorry if this sounds harsh, but if someone else is doing it in an Obj-C app, and your MT app is having performance problems, it's not MT until you have a 1:1 code port of their code. 99% of the time, it'll be your code. (again, sorry if this sounds harsh against you - it's true for everyone, I

Re: [MonoTouch] Monotouch json

2011-08-10 Thread Nic Wise
Yup, I'm using a port of Json.NET, which came with the DropNet package. Mine is here: https://github.com/nicwise/DropNet Tho thats really just a recompile of the mainline one, so try working from the original DropNet ( https://github.com/dkarzon/DropNet ) down. I'm going to have to use it

Re: [MonoTouch] No Content in UIWebView from Local File

2011-08-10 Thread helusoft
No, there is no IsDir Parameter. I tried the following string filename = NSBundle.MainBundle.BundlePath + /Anleitung.html; Stream s = new FileStream(filename,FileMode.Open,FileAccess.Read); = Error: File not Found When i have a look on the package, i see, there is no file (with

Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C

2011-08-10 Thread Jon Hopkins
The bottom line is we have no real benchmarks. 1:1 code mapping can prove some things, but Its not a given that there is no performance difference, yet. I would like to see some hard figures that do show this, to convince clients that there is no Reason to use objective c over monotouch.

Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C

2011-08-10 Thread Nic Wise
The only way to do that is to write something non trivial in both, and look at the perf results. Be sure to tell them it took you 5x or more longer to write in Obj-C, with no possibility to port to other platforms without a full rewrite, with the potential for nasty memory-related crashes

Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C

2011-08-10 Thread Robert Jordan
On 10.08.2011 12:48, Jon Hopkins wrote: The bottom line is we have no real benchmarks. 1:1 code mapping can prove some things, but Its not a given that there is no performance difference, yet. I would like to see some hard figures that do show this, to convince clients that there is no

Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C

2011-08-10 Thread kbudris
I've only worked with MonoTouch so far... haven't yet needed to work on Microsoft or Android devices. Just how portable is a MonoTouch app to Android? I can see where I might be able to reuse the data model, but the entire presentation layer seems so Apple-specific. Wouldn't the entire UI need to

Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C

2011-08-10 Thread Nic Wise
This is where patterns like MVVM come in. You model, view and viewmodel don't change (or change very little). But your view (which sits above the viewmodel) changes a lot. It's not an easy thing to design, but it's better than c# + java + obj-c On Wed, Aug 10, 2011 at 13:39, kbudris

[MonoTouch] App size (MT3 vs MT4)

2011-08-10 Thread joclem
I've read that MT4 could reduce the size of apps (from miguel's tweet I think). Does anybody has observe a size diminution when compiling with MT4 vs MT3? I'm not ready to install MT4 yet (i'm in a beta stage). -- View this message in context:

Re: [MonoTouch] App size (MT3 vs MT4)

2011-08-10 Thread Sebastien Pouliot
Hello, Both MonoTouch 3.x and 4.x includes the MonoLinker which can shrink your application. The latest (Xamarin's) releases of MonoTouch 4 also includes several enhancements. See http://spouliot.wordpress.com/2011/07/21/smaller-monotouch-applications/ for a sample case. However it's very hard

[MonoTouch] UIImageViews not respecting frame size on iOS 3.1.2

2011-08-10 Thread Anita H.
Hi, I have a universal application, and all of my images are sized for the iPad. To size them correctly on the iPhone, I use the UIImageView.Frame property. However, I just tested out my app on an iPhone 1 running iOS 3.1.2, and all of the images are showing up full size! Does anyone know why

[MonoTouch] Exception assistance...

2011-08-10 Thread Dean Cleaver
Guys, Would I be right if I guess that this is an exception where null was passed into the SetString function? MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[NSPlaceholderString initWithUTF8String:]: NULL cString at

Re: [MonoTouch] Exception assistance...

2011-08-10 Thread Jeff Stedfast
Yep, that's what it looks like. We should null-protect that method. Which version of MT is this? Jeff On Aug 10, 2011 5:51 PM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Guys, Would I be right if I guess that this is an exception where null was passed into the SetString function?

Re: [MonoTouch] Exception assistance...

2011-08-10 Thread Dean Cleaver
Ummm - was released last Friday, and was the latest at that time. From: Jeff Stedfast [mailto:j...@xamarin.com] Sent: Wednesday, August 10, 2011 4:55 PM To: Dean Cleaver Cc: Forums, MonoTouch (monotouch@lists.ximian.com) Subject: Re: [MonoTouch] Exception assistance... Yep, that's what it looks

Re: [MonoTouch] Exception assistance...

2011-08-10 Thread Jeff Stedfast
Thanks Dean, I'll look into this tomorrow. Jeff On Aug 10, 2011 5:59 PM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Ummm - was released last Friday, and was the latest at that time. From: Jeff Stedfast [mailto:j...@xamarin.com] Sent: Wednesday, August 10, 2011 4:55 PM To: Dean

[MonoTouch] Install help

2011-08-10 Thread bukko
Hi, I'm new to Macs so I went by instructions in a Wrox book I bought, which gives a different install order than the one found on http://ios.xamarin.com/Documentation/Installation the Monotouch site . It didn't work as I was expecting; the GUI looked totally different and Wrox were no help.

Re: [MonoTouch] Install help

2011-08-10 Thread Jason Awbrey
which version of XCode did you install? XCode 4 is completely different than XCode 3, and the v4 Interface Builder does not work with MT (yet) On Wed, Aug 10, 2011 at 6:21 PM, bukko p...@madzebra.com wrote: Hi, I'm new to Macs so I went by instructions in a Wrox book I bought, which gives a