Re: [MonoTouch] Runtime issue with current beta (5.3): Operation is not valid due to the current state of the object

2012-07-11 Thread Mikkel Lønow
() { var raw = Execute(request); return DeserializeT(request, raw); } On Sat, Jul 7, 2012 at 6:17 PM, Mikkel Lønow mloe...@gmail.com wrote: Hi, I'm having the same issue with RestSharp (but very

Re: [MonoTouch] UIDatePicker - AM/PM : Getting it exactly the wrong way around.

2012-07-10 Thread Mikkel Lønow
Hi, I think the date picker handles date/time internally in some way, so I use my date picker this way: picker.Date = date.ToLocalTime(); date = DateTime.SpecifyKind(picker.Date, DateTimeKind.Local).ToLocalTime(); Does that help? Mikkel On Tue, Jul 10, 2012 at 11:55 AM, Phil Cockfield

Re: [MonoTouch] Runtime issue with current beta (5.3): Operation is not valid due to the current state of the object

2012-07-07 Thread Mikkel Lønow
Hi, I'm having the same issue with RestSharp (but very inconsistent), although, switching to SimpleJson (included in the project) with the #define SIMPLE_JSON_DATACONTRACT uncommented (I'm using that anyway so I won't loose my data to linker), somewhat solved my issue. I'm still seeing some

Re: [MonoTouch] Console.WriteLine the contents of an NSDictionary

2012-07-06 Thread Mikkel Lønow
Hi Brett, I wrote that 7 month ago and I believe it had some bugs. Feel free to improve it (probably other ways to do it as well) :) Mikkel On Fri, Jul 6, 2012 at 4:57 PM, Brett Spurrier brett.spurr...@gmail.comwrote: Found what i was looking for: https://gist.github.com/1416503 Cheers,

Re: [MonoTouch] UIImage.FromFile and @2x images

2012-07-05 Thread Mikkel Lønow
Hi, FromFile should automatically apply the @2x suffix. If you manually apply @2x, I suspect iOS to believe the non-retina file is actually called that, thus applying @2x again, which will result in an invalid path. Are you certain that the file's Build Action is set to Content? Mikkel On Thu,

Re: [MonoTouch] UIImage.FromFile and @2x images

2012-07-05 Thread Mikkel Lønow
Hmm, did not notice Phil's reply before now. I use FromFile in a lot of UI specific code and I don't have @2x written anywhere. It all works automatically. Mikkel On Thu, Jul 5, 2012 at 1:26 PM, Robert Jordan robe...@gmx.net wrote: On 05.07.2012 09:45, Mikkel Lønow wrote: Hi, FromFile

Re: [MonoTouch] What is the Crash Reporting option in Monodevelop?

2012-07-04 Thread Mikkel Lønow
Hi, It has already been discussed: http://monotouch.2284126.n4.nabble.com/Crash-reporting-td4655645.html It's currently a pre-release feature, but it works very well with MD 3.0.3.3. Awesome work, guys! :) Mikkel On Wed, Jul 4, 2012 at 10:22 AM, René Ruppert rene.rupp...@gmail.comwrote: Hi,

Re: [MonoTouch] Crash reporting

2012-07-02 Thread Mikkel Lønow
Using a valid Crashlytics API key (acceptance took a few days), MonoDevelop will successfully upload the app's debug info (zipped dSYM). But bindings for their SDK are needed to actually report crashes with MonoTouch. Has anyone here made them? Rolf? (will gladly help test any pre-release

Re: [MonoTouch] UIActivityIndicator implementation question

2012-07-02 Thread Mikkel Lønow
Hi, You could use the UIWebView's LoadFinished event. Start the UIActivityIndicator on load and stop it again when the LoadFinished fires. Mikkel On Mon, Jul 2, 2012 at 8:37 PM, Chris_M kungfuchri...@yahoo.com wrote: My app launches a webview from my MainViewController. Everything works

Re: [MonoTouch] Crash reporting

2012-06-29 Thread Mikkel Lønow
I poked around, and MonoDevelop seems to be contacting api.crashlytics.com when using a random API key, which responds with: Configuring crash reporting for this application Extra information returned from crash reporting server: Crash reporting configuration failed. The remote server returned

Re: [MonoTouch] How I can convert NSData to CIImage in monotouch

2012-06-12 Thread Mikkel Lønow
Hello, Try this: var image = UIImage.LoadFromData(data).CIImage; Mikkel On Tue, Jun 12, 2012 at 9:25 AM, pritish pritish_deshm...@medsynaptic.comwrote: How I can convert NSData to CIImage in monotouch -- View this message in context:

Re: [MonoTouch] How I can convert NSData to CIImage in monotouch

2012-06-12 Thread Mikkel Lønow
Help us help you, i.e. let us know which version of MonoTouch and MonoDevelop you're using, and preferably, show us your implementation. On Tue, Jun 12, 2012 at 9:45 AM, pritish pritish_deshm...@medsynaptic.comwrote: It gives an error as Unknown member -- View this message in context:

Re: [MonoTouch] How I can convert NSData to CIImage in monotouch

2012-06-12 Thread Mikkel Lønow
My example seems to give null on MT 5.3.3 (alpha). Try this: var image = CIImage.FromData(NSData.FromArray(data)); On Tue, Jun 12, 2012 at 10:06 AM, pritish pritish_deshm...@medsynaptic.comwrote: Monbodevelop 3.0 and MonoTouch 5.2.11 -- View this message in context:

Re: [MonoTouch] Adding a Badge Value to the More Tab

2012-06-07 Thread Mikkel Lønow
Hi, You should be able to set TabBarItem.BadgeValue on the UIView-/UINavigationController. Mikkel On 07/06/2012, at 15.42, Mike Murdock mmurd...@allmeds.com wrote: Adding a Badge Value to the More Tab Does anyone know how to do this with monotouch c# *Michael Murdock * *Software

Re: [MonoTouch] Adding a Badge Value to the More Tab

2012-06-07 Thread Mikkel Lønow
to that view that list the more items. ** ** Thanks Michael ** ** *From:* Mikkel Lønow [mailto:mloe...@gmail.com] *Sent:* Thursday, June 07, 2012 9:58 AM *To:* Mike Murdock *Cc:* monotouch@lists.ximian.com *Subject:* Re: [MonoTouch] Adding a Badge Value to the More Tab

Re: [MonoTouch] UIPickerView and selecting a value...

2012-05-29 Thread Mikkel Lønow
Hi Bob, I recently had trouble with the same thing, but figured out you can do it with gesture recognizers. Here's my implementation: public class SingleTapGestureRecognizer : UITapGestureRecognizer { ActionUITapGestureRecognizer _onTouch; public

Re: [MonoTouch] Possible to prevent app from running in the background when closed?

2012-03-01 Thread Mikkel Lønow
Hi, You can set UIApplicationExitsOnSuspend to YES in your Info.plist. This will prevent the app from using multitasking. There might be a way to force the splash screen to be displayed when resuming, but unfortunately I don't know the answer to that. Mikkel On Thu, Mar 1, 2012 at 13:50,

Re: [MonoTouch] Possible to prevent app from running in the background when closed?

2012-03-01 Thread Mikkel Lønow
Found this - seems like you can do it without setting that key: http://stackoverflow.com/questions/6622762/splash-screen-on-resume-in-iphone Mikkel On Thu, Mar 1, 2012 at 14:10, Mikkel Lønow mloe...@gmail.com wrote: Hi, You can set UIApplicationExitsOnSuspend to YES in your Info.plist

Re: [MonoTouch] MonoTouch.EventKit.EKCalendar.Title is r/o

2012-01-13 Thread Mikkel Lønow
Just like you would in any other C# project :) Try this: public class MyCalendar : MonoTouch.EventKit.EKCalendar { public override string Title { get { return My calendar; } } } And then: var calendar = new MyCalendar(); You could also do the following if you need many calendars:

Re: [MonoTouch] MonoTouch.EventKit.EKCalendar.Title is r/o

2012-01-13 Thread Mikkel Lønow
Try the [Register] attribute. Mikkel On Fri, Jan 13, 2012 at 15:06, obartelt obart...@amtangee.com wrote: Good question, I would have to try it - but I fear it wouldn't work, since the underlying property in the iOS SDK doesn't get set this way. I've seen people inheriting from MonoTouch

Re: [MonoTouch] Method transitionWithView missing from Transition overloads?

2012-01-10 Thread Mikkel Lønow
Hi, Transition is a static method on UIView. The signature is correct. According to http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.htmlthe completion parameter can be null. Mikkel On Tue, Jan 10, 2012 at 12:10, Emanuele Sabetta

Re: [MonoTouch] Enabling BETA downloads

2011-12-06 Thread Mikkel Lønow
Have look under Preferences Updates, tick 'Install unstable developer updates'. Mikkel On Tue, Dec 6, 2011 at 07:11, bala sista balaia...@gmail.com wrote: how to enable beta downloads on 2.8.X versions of monodevelop ___ MonoTouch mailing list

[MonoTouch] Developers in or around Copenhagen (Denmark)

2011-11-15 Thread Mikkel Lønow
Hello, If you're a MonoTouch/Mono for Android/WP7 developer in or around Copenhagen, Denmark, I'd like to get in touch with you. Please write me directly instead of spamming the lists. If you prefer, you can write me in Danish. Thanks, Mikkel ___

Re: [MonoTouch] CSProj file size - why now huge ?

2011-10-27 Thread Mikkel Lønow
The .csproj file is just XML - open it and see what's being added. Could be a bug. Even 712 KB seems like a lot to me. Mikkel On Thu, Oct 27, 2011 at 14:02, MonkeyWorld st...@rennocks.co.uk wrote: As an update... I've just gone into TimeMachine and got my .csproj file from a few days ago ...

Re: [MonoTouch] Find ID of a control

2011-09-16 Thread Mikkel Lønow
Hello, You could extend your control and put the field in it you need. Try this: public class MyLabel : UILabel { public int Id { get; set; } } And in your loop you do: foreach (var control in this.View.Subviews) { if (control is MyLabel) control.Text =

Re: [MonoTouch] Memory Warning Level1, Level2, then crash

2011-09-09 Thread Mikkel Lønow
well.actually.cat, 256 MB - http://en.wikipedia.org/wiki/IPad#Technical_specifications :) Mikkel On Fri, Sep 9, 2011 at 14:34, Jeff Stedfast j...@xamarin.com wrote: Not to Well-Actually-Cat you, but I'm pretty sure the iPad1 only has 128 MB of RAM. I mention this because it may be useful to

Re: [MonoTouch] Poor Performance in MonoDevelop 2.6

2011-09-08 Thread Mikkel Lønow
Did you also update to MT 4.1.1.1 Beta? For me it's only in MT projects and happened with MD RC2 as well. Mikkel On Thu, Sep 8, 2011 at 13:28, JB jeff.butterwo...@softwareresults.com.auwrote: Not sure if anyone else is seeing this but I am getting really poor performance using the newly

Re: [MonoTouch] Poor Performance in MonoDevelop 2.6

2011-09-08 Thread Mikkel Lønow
Yes (or a combo?). Haven't used MD 2.4 for a while and haven't tried MD 2.8 Alpha yet so don't know if they have the same issue. One could also try to downgrade to MT 4.0.7 or upgrade to MT 4.9 Alpha and see if the issue persists. On Thu, Sep 8, 2011 at 13:33, JB

Re: [MonoTouch] Custom MapKit Pins/Circles

2011-09-06 Thread Mikkel Lønow
version of MonoDevelop. On Mon, Sep 5, 2011 at 3:45 PM, Mikkel Lønow mloe...@gmail.com wrote: Right click / Ctrl click / two finger tab on the .app package and select Show Package Contents. What version of MonoDevelop are you using? On Mon, Sep 5, 2011 at 15:42, Tomasz Cielecki tom

Re: [MonoTouch] Custom MapKit Pins/Circles

2011-09-06 Thread Mikkel Lønow
guess this is not what I want :D Now how do I make them jump in there willingly? On Tue, Sep 6, 2011 at 9:11 AM, Mikkel Lønow mloe...@gmail.com wrote: It should be in bin/Debug/iPhoneSimulator. It's copied to the simulator after compilation. On 06/09/2011, at 09.08, Tomasz Cielecki tom

Re: [MonoTouch] Custom MapKit Pins/Circles

2011-09-06 Thread Mikkel Lønow
using images. As both text and the color of the circle has to be updated sometimes. On Tue, Sep 6, 2011 at 1:11 PM, Mikkel Lønow mloe...@gmail.com wrote: It's working in MonoDevelop 2.6 RC2. Get it from the updater :) Make sure to set Build Action to Content. Otherwise, you would have

Re: [MonoTouch] Custom MapKit Pins/Circles

2011-09-05 Thread Mikkel Lønow
Hi Tomasz, I believe MKAnnotationView would be your best option. Use a custom MKMapViewDelegate and override GetViewForAnnotation where you call mapView.DequeueReusableAnnotation to reuse the annotation view (or create a new if null). Here you can set your image to the annotation view. Feel free

Re: [MonoTouch] Custom MapKit Pins/Circles

2011-09-05 Thread Mikkel Lønow
ideas? I know the code provided uses MKPinAnnotationView, but changing it to MKAnnotationView simply shows nothing. On Mon, Sep 5, 2011 at 2:48 PM, Mikkel Lønow mloe...@gmail.com wrote: Hi Tomasz, I believe MKAnnotationView would be your best option. Use a custom MKMapViewDelegate

Re: [MonoTouch] MonoTouch Research

2011-09-05 Thread Mikkel Lønow
Hello, Take a look at http://conceptdev.blogspot.com/2011/03/monodroid-meet-monotouch-windowsphone7.htmland other of Craig Dunn's posts. Mikkel On Mon, Sep 5, 2011 at 15:32, Mittchel mittc...@gmail.com wrote: Hello everyone, I am going to start a research about MonoTouch so the basic use of

Re: [MonoTouch] Custom MapKit Pins/Circles

2011-09-05 Thread Mikkel Lønow
, Sep 5, 2011 at 3:39 PM, Mikkel Lønow mloe...@gmail.com wrote: At first glance it looks correct. Is Build Action for pin.png set to Content? Can you make sure they are actually copied to the .app package? (there's a bug in some versions of MonoDevelop where images would not be copied

Re: [MonoTouch] Generate IPA for beta distribution

2011-09-01 Thread Mikkel Lønow
Hello Jon, TestFlight is a great service, we use it a lot. You can use Terminal to create the IPA (basically a ZIP file): mkdir zip/Payload cp ../Images/iTunesArtwork.jpg zip/iTunesArtwork cp -r ../YourApp/bin/iPhone/Release/YourApp.app tozip/Payload cd zip zip -r ../YourApp.ipa * Modify to

Re: [MonoTouch] Error merging info.plist

2011-09-01 Thread Mikkel Lønow
Hey Wally, I had the same issue (only with device compilation) after installing Xcode 4.2 with iOS 5 SDK beta 7. I noticed that only iOS 5 SDK was available for device builds even though 4.3 was still there for simulator builds (hmm?). I had to downgrade to Xcode 4.1 with iOS 4.3 SDK, which moved

Re: [MonoTouch] MT 4.1.0

2011-08-22 Thread Mikkel Lønow
Hi Jon, Console/Debug.WriteLine is working fine on MT 4.1.0 (and MD 2.6 RC2) for me. Mikkel On Mon, Aug 22, 2011 at 10:36, Jon Hopkins jon.hopk...@bgagroup.net wrote: It looks good, nice improvements – any reason not to use it apart from the lack of Console.WriteLine ? ** ** Jon

Re: [MonoTouch] Default.png not added to iPhone Release build

2011-08-22 Thread Mikkel Lønow
Hi Danny, That's a bug in MonoDevelop 2.6 prior to RC2, which was just released. Try using RC2 and see if that helps (did for me). Mikkel On Mon, Aug 22, 2011 at 15:12, scheelings d.scheeli...@smallweb.nl wrote: Hi, I am using TestFlight.com to test/distribute my iPhone apps developed with

Re: [MonoTouch] Cookies from UIWebView to Webclient

2011-06-07 Thread Mikkel Lønow
Hello, I'm not sure you can read cookies from UIWebView, but you can do you your own post (or get first, depending on the security) with WebClient and then capture the cookies. All you need to do attach your own CookieContainer: public class CookieWebClient : WebClient { private

Re: [MonoTouch] Push notifications with mono touch?

2011-05-13 Thread Mikkel Lønow
Take a look at this blog post: http://roycornelissen.wordpress.com/2011/05/12/push-notifications-in-ios-with-monotouch/ Mikkel 2011/5/13 Nic Wise n...@fastchicken.co.nz From what I know, yes. Most of it is the off-device setup (you have to have a server or use something like urban airship),