Re: [MonoTouch] How do Objective C iOS apps cancel threads so quickly?

2012-02-27 Thread Rolf Bjarne Kvinge
On Sat, Feb 25, 2012 at 9:50 PM, René Ruppert rene.rupp...@googlemail.comwrote: Hi, one thing I have been wondering about is, how quickly apps written in ObjC can cancel threads. Just one example: I have an app where I can check train schedules. I tell it from where to where and it

Re: [MonoTouch] Linker error when trying to go to device

2012-02-27 Thread Rolf Bjarne Kvinge
On Mon, Feb 27, 2012 at 5:19 AM, danmiser danmi...@gmail.com wrote: I'm down to some final testing. Things work pretty well on the simulator, but when I choose the Release | iPhone configuration and Run, I get this compile error: Could not link assemblies (MT2001) I set the Linker

Re: [MonoTouch] [mono-android] sharing code between mono touch and mono for android

2012-02-27 Thread Jamie Briant
Is this as good as it gets? I'm attempting to build an MfA version of my MT app and its proving extremely frustrating, to the extent that I'm considering just writing the thing in Java. My reason for using MT was the awfulness of Objective-C, and while java is frustrating its entirely doable. The

Re: [MonoTouch] How do Objective C iOS apps cancel threads so quickly?

2012-02-27 Thread Robert Jordan
On 25.02.2012 21:50, René Ruppert wrote: one thing I have been wondering about is, how quickly apps written in ObjC can cancel threads. Just one example: I have an app where I can check train schedules. I tell it from where to where and it starts searching. Whenever I click some other element

[MonoTouch] Is Xcode 4.1 comes with the iOS 5 SDK.

2012-02-27 Thread Pritish
Hi, xcode4.1 contains which ios sdk version? also how i can configure ios5 sdk it with xcode4.1 Xcode 4.1 comes with the iOS 5 SDK. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Is-Xcode-4-1-comes-with-the-iOS-5-SDK-tp4424482p4424482.html Sent from the MonoTouch

[MonoTouch] Swedish monodroid/monotouch developers

2012-02-27 Thread elwis
Hi all, We are some developers and nerds residing in the city of Boras, Sweden, that formed the BISY society (www.bisy.se). We're organizing get-togethers and coding dojos were we swallow a huge amount of coffee and eat sandwiches while learning about new technologies. A lot of us are very

[MonoTouch] MonoTouch.Dialog data passing question

2012-02-27 Thread Guido Van Hoecke
Hi, Experiments with Monotouch.Dialog leads me to the following question: How does one pass data from a StringElement to the lower level RootElement? Imagine a root element having a section with StringElements for each of the records resulting from a database query. Each of these

Re: [MonoTouch] [mono-android] sharing code between mono touch and mono for android

2012-02-27 Thread Nathan Clevenger
Have you looked at the proposed solution/project structure and workflow proposed in the new book, *Professional Cross-Platform Mobile Development in C#*? http://www.amazon.com/Professional-Cross-Platform-Mobile-Development-C/dp/1118157702/ref=pd_sim_b_34 This is the approach that our firm has

[MonoTouch] How to increment the iPhone Application Version number on every build?

2012-02-27 Thread HairyJohn
Hi, Id like to increment the build number every time I build: [Major].[Minor].[Build] Normally (in VS) I would do this by setting the build version to * but that doesn't appear to work with MonoTouch. Any way of achieving this? Is there a build task I can hook into in some way? Cheers Hairy

[MonoTouch] Push Notifications: How best to deal with them when the app isn't running?

2012-02-27 Thread MilkyJoe
I have push notifications working when my app is running (foreground or background) - the incoming payload (NSDictionary) has an aps key. However, I'm struggling to deal with the notification when my app is run, for the first time, AFTER the notification is received. The options dictionary on the

[MonoTouch] Push Notifications: How best to deal with them when the app isn't running?

2012-02-27 Thread MilkyJoe
I have push notifications working when my app is running (foreground or background) - the incoming payload (NSDictionary) has an aps key. However, I'm struggling to deal with the notification when my app is run, for the first time, AFTER the notification is received. The options dictionary on the

Re: [MonoTouch] Push Notifications: How best to deal with them when the app isn't running?

2012-02-27 Thread MilkyJoe
Ah. I see the FinishedLaunching's options parameter contains a UIApplicationLaunchOptionsRemoteNotificationKey key when the notification is clicked on. The options parameter contains nothing when launched normally, even if a notification has been receive on the device. I assume I can, therefore,

[MonoTouch] RowSelected breakpoints doesn't work.

2012-02-27 Thread AnthonyLambert
I have class which overrides RowSelect edfrom a couple of levels deep from UITableViewSource. So it's: class aSource: UITableViewSource { public override void RowSelected (UITableView tbl, NSIndexPath ind ) { Console.Write(aaa); // breakpoint a } } class bSourceT : aSource where T

[MonoTouch] XCode 4.3: Project file cannot be opened because the project file cannot be parsed

2012-02-27 Thread MilkyJoe
I'm using the latest public beta build of MD and MT, and XCode 4.3. At the end of last week, I started to receive this error when attempting to open my xib files in XCode: Project file [filename] cannot be opened because the project file cannot be parsed. I was hoping it would fix itself, but

Re: [MonoTouch] Linker error when trying to go to device

2012-02-27 Thread danmiser
Thanks, Rolf. Still having some troubles, though. For the record, these are assemblies that I've written that I'm trying to share between the 2 platforms. Fairly simple POCO, DTO and utility code. Let's take those out of the mix for now. What I tried: 1. I have a project in MonoDevelop. I created

Re: [MonoTouch] Linker error when trying to go to device

2012-02-27 Thread danmiser
More info: Doing an Edit References and adding the library assembly via the .Net Assembly tab gets things building and running on the simulator. But I'm still stuck trying to do a Release|iPhone build with the same error as before (Could not link assemblies (MT2001)). I was able to bring all of

Re: [MonoTouch] How to increment the iPhone Application Version number on every build?

2012-02-27 Thread Rolf Bjarne Kvinge
Hi, I just added this to a project: [assembly: System.Reflection.AssemblyVersion (1.2.*)] and the version number does increase on every build. Can you show us exactly what you're doing? Rolf On Mon, Feb 27, 2012 at 6:35 PM, HairyJohn m...@johnhair.com wrote: Hi, Id like to increment the

Re: [MonoTouch] RowSelected breakpoints doesn't work.

2012-02-27 Thread Rolf Bjarne Kvinge
Hi, This looks like a problem we've had before with breakpoints in generic classes. Can you file a bug report with a test case so we can look at getting it fixed? Thanks, Rolf On Mon, Feb 27, 2012 at 10:13 PM, AnthonyLambert anthonylamb...@mac.comwrote: I have class which overrides

Re: [MonoTouch] RowSelected breakpoints doesn't work.

2012-02-27 Thread Jeff Stedfast
Hi Anthony, This is a known bug in MonoDevelop 2.8.6 and has been fixed in the upcoming 2.8.8. For more information, see https://bugzilla.xamarin.com/show_bug.cgi?id=3110for more details. Hope that helps! Jeff On Mon, Feb 27, 2012 at 4:13 PM, AnthonyLambert anthonylamb...@mac.comwrote: I

Re: [MonoTouch] XCode 4.3: Project file cannot be opened because the project file cannot be parsed

2012-02-27 Thread Jeff Stedfast
Hi MilkyJoe, This was due to the project name having a space in it. MonoDevelop wasn't properly quoting the project name in the Xcode project that it exported. This is fixed now in the 2.8.8.0 release that we are prepping. Hope that helps, Jeff On Mon, Feb 27, 2012 at 4:17 PM, MilkyJoe

Re: [MonoTouch] XCode 4.3: Project file cannot be opened because the project file cannot be parsed

2012-02-27 Thread MilkyJoe
Hi Jeff, Thanks (again) for the fast response. Removing the space from the project name has indeed enabled me to continue working. Cheers -- View this message in context:

Re: [MonoTouch] [mono-android] sharing code between mono touch and mono for android

2012-02-27 Thread Alec Tucker
Jamie, While you're waiting for the book to arrive...take a look at: https://github.com/follesoe/FlightsNorway for a neatly worked and well explained example. I've been using this approach successfully for some time now across all three platforms. Feel free to get in touch if you want some

Re: [MonoTouch] Linker error when trying to go to device

2012-02-27 Thread danmiser
Solved. After I got the DLLs compiled inside MD, I was still getting the same error. I tried the different linker settings again, and this time setting the linker to Don't Link, I was able to deploy to the device. -- View this message in context:

Re: [MonoTouch] Linker error when trying to go to device

2012-02-27 Thread Sebastien Pouliot
Hello Dan, On Mon, Feb 27, 2012 at 9:17 PM, danmiser danmi...@gmail.com wrote: Solved. After I got the DLLs compiled inside MD, I was still getting the same error. I tried the different linker settings again, and this time setting the linker to Don't Link, I was able to deploy to the device.

Re: [MonoTouch] How do Objective C iOS apps cancel threads so quickly?

2012-02-27 Thread René Ruppert
The problem I'm having with the solutions you and Rolf propose is that one might end up with a couple of threads waiting to terminate. Imagin that switching to a tab in a tab controller starts a thread that does some hefty work. Then user switches tabs and the thread is signaled to abort ASAP

Re: [MonoTouch] How to increment the iPhone Application Version number on every build?

2012-02-27 Thread HairyJohn
Hello Rolf, Its the bundle version I want to increment on a build, so that it gets picked up on new TestFlight builds for example. Where do I need to make that change? Thanks John -- View this message in context:

Re: [MonoTouch] RowSelected breakpoints doesn't work.

2012-02-27 Thread AnthonyLambert
as ever very helpful and prompt. -- View this message in context: http://monotouch.2284126.n4.nabble.com/RowSelected-breakpoints-doesn-t-work-tp4426083p4427318.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list

[MonoTouch] .net versions: why different?

2012-02-27 Thread James Briant
MT is 4.0. MfA is 3.5. You'd think it doesn't make much of a difference but if my libs are 3.5 NUnit wont run them from a network location. Meanwhile, WP7 is Silverlight 4.0. So that totally screws my plan of having shared code. Project Linker and the associated hacker is not a robust solution