[MonoTouch] Core controller doesn't rotate when MT.Dialog visible?

2012-07-01 Thread HairyJohn
Hi there, My app supports all orientations and rotates just fine, except when an MT.Dialog is visible. If I then rotate the dialog rotates as well, but when I dismiss the Dialog the core view controller DidRotate hasn't been triggered and the View looks stretched etc. I expected all view controller

Re: [MonoTouch] Monotouch.Dialog.DialogViewController and UIToolBar - Can they coexist?

2012-07-01 Thread Felix Collins
Ok Scratch that! It did actually work just adding the DVC and the UIToolBar to the same view and resizing. (I missed the resize - doh!) Sorry for the noise... -- View this message in context: http://monotouch.2284126.n4.nabble.com/Monotouch-Dialog-DialogViewController-and-UIToolBar-Can-they-coe

[MonoTouch] Monotouch.Dialog.DialogViewController and UIToolBar - Can they coexist?

2012-07-01 Thread Felix Collins
I'm using a Monotouch.Dialog based ui but I need a fixed UIToolBar at the bottom of the tableview. This seems to be a not uncommon problem. Has anyone got this to work and would care to share the secret? Cheers, Felix I looked on the web... http://stackoverflow.com/questions/9763196/monotouch-d

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Gerry High
http://xamarin.com/seminars I believe they said the slides/video would be posted on Monday for the seminar last Thursday. Gerry On Jul 1, 2012, at 6:56 PM, Shawn Castrianni wrote: > Where can I find out more about this seminar in styling iOS apps? > > ___ > Shawn > > On Jul 1, 2012, at 5:55

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Shawn Castrianni
Where can I find out more about this seminar in styling iOS apps? ___ Shawn On Jul 1, 2012, at 5:55 PM, Gerry High wrote: > Thanks for your help. By the way, I really enjoyed your seminar the other > day on Styling your iOS apps. > > Gerry > > On Jul 1, 2012, at 4:17 PM, Nic Wise wrote: >

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Gerry High
Thanks for your help. By the way, I really enjoyed your seminar the other day on Styling your iOS apps. Gerry On Jul 1, 2012, at 4:17 PM, Nic Wise wrote: > AH! yes, that'll do it :) > > Glad you got it worked out > > Cheers > > Nic > > On Sun, Jul 1, 2012 at 8:32 PM, Gerry High wrote: >>

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Nic Wise
AH! yes, that'll do it :) Glad you got it worked out Cheers Nic On Sun, Jul 1, 2012 at 8:32 PM, Gerry High wrote: > Not easily at the moment. > > However, thanks to your suggestion of trying to create the sheet every time > I've figured out the error (on my part). > > In my code I had > > if

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Gerry High
Not easily at the moment. However, thanks to your suggestion of trying to create the sheet every time I've figured out the error (on my part). In my code I had if (sheet == null) { create it, etc. } sheet.Click +=…. The Clicked handler was getting += each time through that the user c

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Nic Wise
Hrmmm... are you able to try it on the normal version? Might be a MonoTouch-not-yet-on-the-beta-of-ios type issue :) On Sun, Jul 1, 2012 at 8:03 PM, Gerry High wrote: > It fails on the second time in displaying the Image Picker. > > I should note that this occurs on the Simulator running iOS [r

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Gerry High
It fails on the second time in displaying the Image Picker. I should note that this occurs on the Simulator running iOS [redacted]. Gerry On Jul 1, 2012, at 1:19 PM, Nic Wise wrote: > Well, the Clicked method (and other events) are just using an internal > delegate. > > Does it not work at a

Re: [MonoTouch] Trying to create a MonoTouch.Dialoag based on a dataset

2012-07-01 Thread Nic Wise
If you are inside something which is in a UINavigationController (and usually, with a dialogviewcontroller, you are), you can push a new view onto the stack (whch gives you the back button). I do this in the sample code for the Xamarin Xaminar I did on thursday https://github.com/nicwise/xaminar-

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Nic Wise
Well, the Clicked method (and other events) are just using an internal delegate. Does it not work at all? or only on the second call? try taking out the if (sheet == null) bit, and recreate it each time. On Sun, Jul 1, 2012 at 6:50 PM, Gerry High wrote: > I do not recreate it each time as it

Re: [MonoTouch] Trying to create a MonoTouch.Dialoag based on a dataset

2012-07-01 Thread Condron, Chuck
Yes I am definitely playing around, just trying to modify the Xamarin walkthrough. What I really want is a button on the main screen, titled "Get Boards" Then when you click that up comes another screen with all of the boards listed... I am not sure of the best way to launch a second screen to

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Gerry High
I do not recreate it each time as it is stored in a class variable. So I do a check of if (sheet == null) { create it here } sheet.Clicked += TakePhoto(); sheet.ShowInView(this.View); In my clicked handler I then create the image picker and have tried quite a few variations on PresentM

Re: [MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Nic Wise
Could it be that you are not recreating the ActionSheet each time? I have a load of working code around this, eg https://gist.github.com/3028960 parentview, in this case, is the dialogviewcontroller that the user was looking at when they hit the button. On Sun, Jul 1, 2012 at 3:03 PM, Gerry Hi

Re: [MonoTouch] IntPtr constructor

2012-07-01 Thread Robert Jordan
On 29.06.2012 19:57, Dean Cleaver wrote: I thought we weren't supposed to create them in our code, but if I don't I get this: System.Exception: Selector invoked from objective-c on a managed object (0x9795310) that has been GC'ed Are we supposed to include them or not? No. It would only hid

Re: [MonoTouch] IntPtr constructor

2012-07-01 Thread René Ruppert
No you should not but meanwhile I always do. I claim that MT has a bug deep down hidden somewhere that causes the problems you experience. I can see the same in my code and I have never found a reasonable explanation for them. I get them on the device only. For each and every controller - total

[MonoTouch] possible bug with UIActionSheet? Clicked vs delegate Dismissed

2012-07-01 Thread Gerry High
I sent this yesterday to the list but then never saw it posted so am resending it. = I noticed an issue in using an UIActionSheet in combination with a UIImagePickerController and thought I'd shared what I've seen and a work around. I ported some working code from Xcode to MonoTouch and got

Re: [MonoTouch] Include both retina and non-retina images?

2012-07-01 Thread Nic Wise
I doubt they would reject you, tho they are now demanding a 1024x1024 itunes icon image, so... maybe it is! That said, I've heard of people being rejected for less obvious HIG issues, so it's possible you would. Only way to really find out is to try. So, why do you want to not do retina images? I

Re: [MonoTouch] Trying to create a MonoTouch.Dialoag based on a dataset

2012-07-01 Thread Nic Wise
A couple of things: 1. I thought that BindingContext only worked on a single object, eg: public class Board { public string Name { get; set; } public string Address {get; set;} } And it then makes a form with a field for each one - but it doesn't work on a LIST of anything. You may have to

Re: [MonoTouch] Binding an interface that conforms to multiple protocols

2012-07-01 Thread Nic Wise
Have you had a read through this? http://docs.xamarin.com/ios/tutorials/Events,_Protocols_and_Delegates http://docs.xamarin.com/ios/advanced_topics/binding_objective-c_types (otherwise, can you provide a bit more code as an example?) On Fri, Jun 29, 2012 at 3:21 PM, tkacem wrote: > Hi All, > >

Re: [MonoTouch] UITableView Scenario Help Needed ---

2012-07-01 Thread Jason Awbrey
when you create your cell, you can assign the Tag property to some value from your data, then retrieve it when your cell is selected alternately, you can use the indexPath value to create a index into the array/list/whatever that was used to populate your table, and retrieve the necessary value fr

Re: [MonoTouch] Just installed MonoTouch and can't examine .xib

2012-07-01 Thread Nic Wise
Are these of any help? http://stackoverflow.com/questions/11161544/xib-is-not-opened-in-xcode-in-a-default-monotouch-application I'd suspect it's a problem with how monodevelop is generating the temporary xcode project. which version are you using? 3.0.3.2 is the current stable version. (failing

Re: [MonoTouch] Include both retina and non-retina images?

2012-07-01 Thread Jason Awbrey
right, you should be able to use just one set of icons/images and iOS will scale them for you On Sat, Jun 30, 2012 at 5:42 PM, rnendel11 wrote: > I'm assuming I do not *need* to add retina launch screens unless I want to > take advantage of making the launch screen look as good as possible. On

Re: [MonoTouch] MonoTouch with Sqlite Critical Scenario Help Needed

2012-07-01 Thread Jason Awbrey
"BLL_Assessments" in this line should be "BLL_Assessment" var result=from item in XDocument.Load ("Assessments.xml").Descendants ("BLL_Assessment") On Fri, Jun 29, 2012 at 11:17 AM, proindigo wrote: > Well just sorted out the issue. Rechecked my code blocks and used the > scopes{} properly and

Re: [MonoTouch] Problem building for Release|iPhone "Microsoft.Win32.RegistryKey"

2012-07-01 Thread Jason Awbrey
are you referencing any third party libraries? On Fri, Jun 29, 2012 at 8:55 AM, efontana wrote: > I've been building my app for a week now using the iPHone simulator and now > when I tried > to build a Release|iPhone i'm getting an error: > > "Can not resolve reference: Microsoft.Win32.RegistryK