[MonoTouch] Passing information between views

2012-10-25 Thread Paul Johnson
Hi, I know that I can pass information to the constructor of a new view in exactly the same way as I would in a standard C# application, so Foo foo = new Foo(hello); will pass a string to the ctor of class Foo. My problem is this. I have two buttons, both of which are linked to the same

[MonoTouch] A good xcode book

2012-12-05 Thread Paul Johnson
Hi, I'm ok with monotouch so that's fine, but I've not much of a clue with xcode design. Can anyone recommend a good book or website that can help me through this part? Thanks Paul -- Space, it says, is big. Really big. You just won't believe how vastly, hugely, mindbogglingly big it is. I

[MonoTouch] Any ideas on this xcode problem?

2013-04-20 Thread Paul Johnson
Hi, I'm trying to fix a problem for a friend here and seem to have hit a problem with xcode. I double click a Xib file in the project which launches xcode. That bit works. Only thing is that's all that works. The UI layout doesn't show at all. I know there is a UI layout as I helped design

[MonoTouch] Finding the registered devices for a user

2013-04-22 Thread Paul Johnson
Hi, According to Apple, if I purchase an app, I am entitled to install it on any device registered to me - in other words, 1 licence for multiple devices. I'm working on an app at the moment which works on a licence basis of up to 5 devices, 6 - 10 and 10+ devices. Problem is the code uses

[MonoTouch] Unable to get the simulators to launch

2013-04-24 Thread Paul Johnson
Hi, I'm trying to deploy to the simulators (iPad and iPhone), but no matter which one I choose, I get the same error warning MT1201: Could not load the simulator:

[MonoTouch] iSpeech monotouch wrapper

2013-04-24 Thread Paul Johnson
Hi, Does anyone know where I can get hold of the monotouch iSpeech wrapper from? The links that point back to the iSpeech website seem somewhat broken. Paul -- Space, it says, is big. Really big. You just won't believe how vastly, hugely, mindbogglingly big it is. I mean, you may think it's

[MonoTouch] Unable to optimise localization string file error

2013-04-24 Thread Paul Johnson
Hi, Can anyone give me a pointer on what I need to look out for in a Localization.string file to avoid this error? plutil -convert binary1 -o /Volumes/Developer/Developer/ftrack-ios/Farmtrack/bin/iPhoneSimulator/Debug/FTrackLive.app/en.lproj/Localizable.strings

[MonoTouch] Same app seems to follow two different paths - any ideas?

2013-04-27 Thread Paul Johnson
Hi, Got an interesting problem here. I have the same app running on two identical machines with the same software and OS set ups (two Mac minis, the other one is the Australia) The app has been developed on my machine, committed to svn and then brought down to the aussie box and built.

Re: [MonoTouch] Same app seems to follow two different paths - any ideas?

2013-04-28 Thread Paul Johnson
Hi, Is is being ignored, or just no debugging? Being ignored What happens if you put Console.WriteLine or Debug.WriteLine in there? do you see output? See nothing What happens if you install the sims? Nothing. One thing I did find was that if it ignores the first instance of an

Re: [MonoTouch] Same app seems to follow two different paths - any ideas?

2013-04-28 Thread Paul Johnson
Hi, Very strange. I've not seen this before - I'd guess version differences with X.iOS, but I'm not sure... Can you remote into the other machine and have a play? It is an odd one. I remoted onto the Australian box which is how I fixed it. I can't fix at this end as I can't see where the

Re: [MonoTouch] Same app seems to follow two different paths - any ideas?

2013-04-29 Thread Paul Johnson
Hi Rolf, The easiest way to check this is to install the 6.3.4 beta and try your app in the simulator - you will get an exception at startup if there are more than one class registered with the same Objective-C name. Only one AppDelegate there. Tried this under the stable, beta and alpha

Re: [MonoTouch] Same app seems to follow two different paths - any ideas?

2013-04-29 Thread Paul Johnson
Hi, There is always the low-tech solution of riddling your code with calls to Console.WriteLine... Did that too - AppDelegate ignored. Now something has just occurred to me and I'm not sure if it happens in monotouch as it does in monodroid. When the compiler hits an event, the event code

Re: [MonoTouch] Same app seems to follow two different paths - any ideas?

2013-04-29 Thread Paul Johnson
Hi, What is the actual behavior you're seeing on the screen? Does the app show up as expected, or does it exit? I get a splash screen. It is then supposed to put up a message to say loading data (UIAlert) and then another UIAlert to say welcome. Now here is the reason why I think it was at

[MonoTouch] Can this be done with monotouch?

2013-05-09 Thread Paul Johnson
Hi, I'm working on an app which has to be as flexible as possible. The idea is that when the app is first run, the user gets to set up buttons on a screen, these buttons have a picture on them - so picture 1 may have doors, and picture 2 have windows for user 1. User 2 may have them set the

[MonoTouch] Any ideas on where to look for this?

2013-05-10 Thread Paul Johnson
Hi, I'm building my app and while it compiles, when it's deployed to the simulator the splash screen shows, but it quickly replaced by this Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSUnknownKeyException Reason: [UIApplication

Re: [MonoTouch] Any ideas on where to look for this?

2013-05-13 Thread Paul Johnson
Hi Nic, or specific to monotouch: http://stackoverflow.com/questions/1257/not-key-value-coding-compliant-monotouch-and-ios-6 Drop an email back if these make no sense. Yeah, makes sense that. Problem is that when I follow the link back to the Xamarin website, it says there should be

[MonoTouch] Button with an image and text

2013-05-14 Thread Paul Johnson
Hi, I have a series of buttons with images on them. This is simple enough to do (btnFoo.SetImage(UIImage.FromFile(...), UIControlState.Normal);) What I would like though is something like this +--+ | | | image | | | | some text | |

[MonoTouch] Importing a view from outside of a xib tooltips

2013-05-23 Thread Paul Johnson
Hi, As always, there is a tonne of advice on how to bring an external object into the current view in ObjC, but nothing much for .NET Does anyone know if there is a simple to follow method of building up a view using external objects around that I may learn from? Another UI bit I can't

Re: [MonoTouch] Importing a view from outside of a xib tooltips

2013-05-24 Thread Paul Johnson
Hi, What do you mean by external objects? In the Xcode designer there is a widget called External Objects which looks to be a placeholder for views created outside of the xib file being worked on. You could do a tooltip when the user enters a field (when it becomes the first responder).

[MonoTouch] Crash on a phone but not on the simulator

2013-06-01 Thread Paul Johnson
Hi, Using the current alpha, but get the same results in the release version. I'm accessing a wcf webservice as part of a large app. On the simulator, everything works fine. When I try to do the same on an iPhone, I'm getting a null exception (object not set to a reference) with the

Re: [MonoTouch] Crash on a phone but not on the simulator

2013-06-02 Thread Paul Johnson
Hi, This is a known issue [1] and was fixed (after 6.3.5 beta) and will be fixed in the next alpha/beta. Temporary workaround included in [1]. [1] https://bugzilla.xamarin.com/show_bug.cgi?id=12356 Adding -nolink to the compiler flags seems to have also cleared the issue for now. When is

[MonoTouch] Adding strings at runtime

2013-06-03 Thread Paul Johnson
Hi, The current app I'm developing requires the use of a translation service for phrases that are user defined and therefore unable to be placed into the translation files. I've found this link on stackoverflow which says it can sort of be done

[MonoTouch] Stopping an embedded MTD from bouncing back to the top

2013-06-03 Thread Paul Johnson
Hi, I have a MTD which add as a subview to a parent view. This is easy enough and works fine. Now comes the interesting part. On the simulator, if I scroll the subview, the view stays where is should. On a real device, it bounces back to the top of the subview once I take my finger off the