[MonoTouch] iOS5 / Appstore quick tip

2011-08-10 Thread Nic Wise
... don't mention iOS5 in your appstore text, even if it's just "Tested on iOS5 betas" Apple will - sometimes, with no consistency - reject apps with _any_ mention of iOS5. Mine now says: Tested on [REDACTED]. More updates if needed. N -- Nic Wise t.  +44 7788 592 806 | @fastchicken | http:/

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

2011-08-10 Thread Nic Wise
I used the LLVM compiler on my app (well, one of them), and saw a reduction in size. Not huge - maybe about 0.5meg on a 12meg app. But it's something. That said. most of my app is resources, which it can't reduce :) I've love to know, if Sebastien or Jeff can answer, is: There are 4 options: Nor

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

2011-08-10 Thread ChrisNTR
Hi joclem, You're probably referring to the LLVM compilation that MonoTouch 4.* provides. Miguel mentioned in his blog post of the release - http://tirania.org/monomac/archive/2011/Apr-06.html that his Tweetstation application went from 8mb to 6mb, which is quite a big gain. Sadly I'm not smart e

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

2011-08-10 Thread ChrisNTR
Hi Helmut, There's an issue with content items in the root of an application not getting deployed into the application when using MonoDevelop 2.6b3. One of the work-arounds, that you have already found, is to put all content in a folder so that it does not come from the root of the application. Y

Re: [MonoTouch] Install help

2011-08-10 Thread bukko
It was version 3.2.6 Thanks -- View this message in context: http://monotouch.2284126.n4.nabble.com/Install-help-tp3734555p3734567.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com ht

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 wrote: > Hi, > > I'm new to Macs so I went by instructions in a Wrox book I bought, which > gives a different ins

[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. Th

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" 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 Cleaver > Cc: Forums, MonoTouc

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
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" wrote: > Guys, > > Would I be right if I guess that this is an exception where null was passed into the SetString function? > > MonoTouch.Foundation.MonoTo

[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 MonoTou

Re: [MonoTouch] UIScreen.MainScreen.Bounds

2011-08-10 Thread Anita H.
I noticed the same thing. What exactly are you trying to do with UIScreen.MainScreen.Bounds? I have developed a landscape application, and I did not have to use it. - Anita Hirth Creative and Technical Director Smart Cookie Studios Website   Twitter   Facebook   Blog -- View this messa

[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 this

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

2011-08-10 Thread Jeff Stedfast
Sebastien, Did your Linker changes make it into 4.0.4.1? I thought they only made it into 4.1 (which is not yet released)? Jeff On Wed, Aug 10, 2011 at 3:09 PM, Sebastien Pouliot wrote: > Hello, > > Both MonoTouch 3.x and 4.x includes the MonoLinker which can shrink > your application. The late

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 to

[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: http://monotouch.2284126.n4.nabble.com/App-size-MT3-v

Re: [MonoTouch] No preview when switching to UIImagePickerController via UITabBarController on iOS 5

2011-08-10 Thread kbudris
I struggled through creating a very simple Objective-C app using XCode (yuck!)... As far as I can tell this problem seems to occur there as well. I've submitted it to Apple as a bug report against iOS 5 Beta. -- View this message in context: http://monotouch.2284126.n4.nabble.com/No-preview-when-

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 wrote: > I

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

2011-08-10 Thread Karl Heinz Brehme Arredondo
You can draw it on IB (iOS) and in axml (Android) (and in visual studio for windows things) and call them the same names, or create all by code but if on windows I don't use all controls created by code, why I will make it all in code now, but It's a personal preference. Some things like textboxes

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

2011-08-10 Thread Robert Jordan
On 10.08.2011 14:39, kbudris wrote: > 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 Appl

Re: [MonoTouch] No preview when switching to UIImagePickerController via UITabBarController on iOS 5

2011-08-10 Thread Dimitris Tavlikos
Hi, It is a bit difficult for someone to help you with a "problem" regarding iOS 5b and MonoTouch. iOS 5b is under NDA and MonoTouch 4.0.3 is most certainly not tested against it (no iOS 5b versions where not around when MT 4.0.3 was released)... So for now, I believe you are on your own with

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 b

[MonoTouch] No preview when switching to UIImagePickerController via UITabBarController on iOS 5

2011-08-10 Thread kbudris
I'm working with iOS SDK 5b5, MonoTouch 4.0.3, Mono 2.10.3_5 and MonoDevelop 2.6b3. I have a UITabBarController that is hosting a UIImagePickerController with SourceType set to Camera. The first time I switch to the the UIImagePickerController everything works fine. When I switch to another tab and

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 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 O

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] Monotouch json

2011-08-10 Thread Peter Garner
Cool ill have a look at that Regards Peter Garner Development Hospitality Development Manager e-mail = peter.gar...@tigertms.com tel = 01425 891028 ext 228 fax = 01425 461484 web = http://www.tigerTMS.com -Original Message- From: Nic Wise [mailto:n...@fastchicken.co.nz] Sent: 10 Au

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 Build-Ac

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 dir

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 thi

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. Steve.

[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: http://monotouch.2284126.n4.nabble.com/Monotouch-json-tp3732371

[MonoTouch] How to Receive Gesture Events?

2011-08-10 Thread pkd2010
Hi I need my application to receive some gestures like zooming using two fingers, how should i receive these events? if it is possible to receive these events using the native code or using MonoTouch, it's very well, but if not i need another stuff to make this event myself. and that is nothing ex

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

2011-08-10 Thread MonkeyWorld
Tried setting the AutoCorrection property in IB to 'No', and also setting to 'No' in my UITextField setup code, and yes it does make it more stable, can now type into the field without it crashing. However, a ShouldReturn delegate that resigns first responder still crashes instantly. Pretty sure

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

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

2011-08-10 Thread helusoft
@berndt Yes, build action is "Content". When i use for example: string content = " Anleitung "; wv.LoadHtmlString(content); i'll see the content in my webview (frame is correct). any other ideas ? How do you read the content of a locale file, embedded/stored in your project ? Thanks, Helmut

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] 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,