[MonoTouch] DateSelected event missing from Monotouch.Dialog-1.dll

2012-03-16 Thread Guido Van Hoecke
The officially released MT.D dll does not implement the DateSelected event that is available in the current git version of MT.D I am rather confident that this event wll make it to the official distro in due time. Am I right to assume that the git version will remain to be the leading implementat

Re: [MonoTouch] Did Threading change a lot in 5.2.latest?

2012-03-16 Thread Nic Wise
... and after some debugging...with a drumroll but NO surprise, it looks like the problem is ME. NullReferenceException in the ContinueWith section. Causes a segfault. Basically: foo.Property = value; foo is null (it's a derivative from MT.D's Element). bang. (Property does nothing except as

Re: [MonoTouch] DateSelected event missing from Monotouch.Dialog-1.dll

2012-03-16 Thread Rolf Bjarne Kvinge
Hi, The officially released MT.D is based on a git version some time before the release (it's updated regularly, though not with a fixed schedule). This obviously means that the officially released version will lag behind a bit with regards to the git version - but everything in git will eventual

Re: [MonoTouch] Did Threading change a lot in 5.2.latest?

2012-03-16 Thread Rolf Bjarne Kvinge
Hi, On Fri, Mar 16, 2012 at 12:11 PM, Nic Wise wrote: > ... and after some debugging...with a drumroll but NO surprise, it > looks like the problem is ME. > > NullReferenceException in the ContinueWith section. Causes a segfault. > Basically: > > foo.Property = value; > > foo is null (it's a

Re: [MonoTouch] Did Threading change a lot in 5.2.latest?

2012-03-16 Thread Nic Wise
Ah, so THATS what you ment. Bother. I was hoping to put a try/catch around it, and then just... ignore it (but not crash). Which I'm doing with an if statement at the moment. thanks :) Maybe i need to turn that off in TF. On Fri, Mar 16, 2012 at 11:14, Rolf Bjarne Kvinge wrote: > Hi, > > On Fri

Re: [MonoTouch] get text from pdf

2012-03-16 Thread GOBLUE
A user Alexander posted a link here. I am checking it out. You can use mTouch-PDFReader library to display PDF documents. See more at http://www.mtouch-pdfreader.com -- View this message in context: http://monotouch.2284126.n4.nabble.com/get-text-from-pdf-tp4214486p4478591.html Sent from th

Re: [MonoTouch] Scrolling to the next page

2012-03-16 Thread GOBLUE
I handled this by creating a scroll view for each page and contained them inside a large "world" scroll view. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Scrolling-to-the-next-page-tp3438330p4478602.html Sent from the MonoTouch mailing list archive at Nabble.com. _

[MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread JonW
Hi there. I've been playing with MonoTouch on a Mac for a few days and whilst I'm getting there with several things (web services, customising the view controllers etc) I am having real issues with SQLite. First off, there are several types of data consumption via SQLite referred to in samples and

Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread Nic Wise
I'd suggest you look at MonoTouch.Dialog for tableviews (after doing some of the "raw" ones in a sample project, so you have an idea of how they work under the hood) And for Sqlite, I prefer Sqlite-net, tho I've found recently that sometimes I shouldn't just load all the records and use linq to fi

Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread Nic Wise
Oh, and MT.D will kinda do bindings, but I tend to build the view in LoadView and the populate them from my data in ViewWillAppear (and manually load them back into the object before the view goes away or when save is pressed). MonoMobile.MVVM might have more binding tho. On Fri, Mar 16, 2012 at

Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread Jeff Stedfast
Hi Jon, Most people seem to use Frank Krueger's SQLite-Net binding as opposed to System.Data because it's a bit simpler for most people. As luck would have it, I'm working on trying to make a very easy to use / generic (literally!) MonoTouch library for displaying data from a sqlite database in a

Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread slodge
If you really want do do bindings then I've got some examples at https://github.com/slodge/MvvmCross/blob/master/Sample%20-%20SimpleDialogBinding/SimpleBinding/SimpleBindingDialog/TipView.cs - but that is a modified version of MT.Dialog But most people don't do "bindings" - instead they fetch the

Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread Karl Heinz Brehme Arredondo
I learned from Windows Mobile compact framework 2.0 to do not make bindings, that there they was slower than fetch records in netcf 2.0 (and probably but in a small scale, in all .NETs on windows, desktop, device and web). So when I need bind something, I create a List, load it from webservice or

Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread Stuart Lodge
Totally agree - I'm binding to in-memory objects - this isn't writing back to the database or to a web-service on every change. I'm a much more recent convert to data-binding - 12 months ago I didn't use it at all, now I'm using it in all my Android XML and all my iPhone XIB code too :) Stuart O

[MonoTouch] Best Way to Parse JSON Array?

2012-03-16 Thread richardvbu
How do I go about parsing a Json array in mono touch using system.json? Thanks -- View this message in context: http://monotouch.2284126.n4.nabble.com/Best-Way-to-Parse-JSON-Array-tp4479028p4479028.html Sent from the MonoTouch mailing list archive at Nabble.com. _

Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread JonW
Wow, thanks Jeff - the code you've uploaded to GitHub looks excellent! I shall try it out on Sunday and let you know how I get on. -- View this message in context: http://monotouch.2284126.n4.nabble.com/SQLite-iOS-binding-to-UITableView-tp4478704p4479606.html Sent from the MonoTouch mailing list

[MonoTouch] Object reference not set exception when calling UIView.Animate

2012-03-16 Thread technohead
Was playing around with a card game that I'm building, when I decided to try dragging a card off the visible screen... behind a header. The code recognizes this as an invalid move and animates the card back to its original location, but this throws the above error. The stack trace looks as follows:

Re: [MonoTouch] Object reference not set exception when calling UIView.Animate

2012-03-16 Thread technohead
Wrapping the UIView.Animate clause in a try/catch doesn't help. The exception can only be caught (it would seem) by a try/catch in main.cs. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Object-reference-not-set-exception-when-calling-UIView-Animate-tp4479639p4479647.ht

Re: [MonoTouch] Object reference not set exception when calling UIView.Animate

2012-03-16 Thread Rolf Bjarne Kvinge
Hi, This is a bit strange: it looks like it's trying to invoke a completed handler when you didn't provide one. Does this work: UIView.Animate(0.5f, ()=>{ this.Frame = new RectangleF(originalLocation, this.Image.Size); }, () => {}); Rolf On Sat, Mar 17, 2012 at 12:24 AM, technohead wrote: > W

Re: [MonoTouch] Object reference not set exception when calling UIView.Animate

2012-03-16 Thread Dimitris Tavlikos
A bit difficult to tell what is causing the problem, however from all the objects in that piece of code, only "this.Image" can be the null reference. Dimitris Tavlikos Software Developer Author of "iOS Development using MonoTouch Cookbook" Email: jimi...@gmail.com Twitter: http://www.twitter.com/

Re: [MonoTouch] Object reference not set exception when calling UIView.Animate

2012-03-16 Thread technohead
Hi Rolf, no it had no effect. Dennis -- View this message in context: http://monotouch.2284126.n4.nabble.com/Object-reference-not-set-exception-when-calling-UIView-Animate-tp4479639p4479653.html Sent from the MonoTouch mailing list archive at Nabble.com. ___

Re: [MonoTouch] Object reference not set exception when calling UIView.Animate

2012-03-16 Thread technohead
Hi Dimitris, unfortunately, this.Image.Size evaluates fine. Dennis -- View this message in context: http://monotouch.2284126.n4.nabble.com/Object-reference-not-set-exception-when-calling-UIView-Animate-tp4479639p4479657.html Sent from the MonoTouch mailing list archive at Nabble.com.

[MonoTouch] UIKeyboardType.DecimalPad with next button

2012-03-16 Thread danmiser
Does anyone have any pointers on how to add a Next button to a UIKeyboard.DecimalPad text field? I'm using Monotouch.Dialog, but if I can figure out how to do it either way, that'd be great. Thanks. -- View this message in context: http://monotouch.2284126.n4.nabble.com/UIKeyboardType-DecimalPad

Re: [MonoTouch] Object reference not set exception when calling UIView.Animate

2012-03-16 Thread Rolf Bjarne Kvinge
Hi, Can you attach a test case then I can try out? Rolf On Sat, Mar 17, 2012 at 12:34 AM, technohead wrote: > Hi Dimitris, > unfortunately, this.Image.Size evaluates fine. > > Dennis > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Object-reference-not-set-except