[MonoTouch] I want perform both Zoom and Rotate operations simultaneously

2012-07-07 Thread pritish
Hi,

I am trying to apply the Pinch Gesture Recognizer to UIImage while the same
time means the zoom in or zoom out the image that time I want to rotate it
with 90 deg with that zooming level but my problem is that ,
while applying rotate operation with zoom only rotate the image with its
original scale.

 I want perform both Zoom and Rotate operations simultaneously.
for rotate image i use the buttons to rotate image for zoom i use
PinchGestureRecognizor 

 code for PinchGestureRecognizor 

void ScaleImage (UIPinchGestureRecognizer gestureRecognizer)
{
AdjustAnchorPointForGestureRecognizer 
(gestureRecognizer);
if (gestureRecognizer.State == 
UIGestureRecognizerState.Began ||
gestureRecognizer.State == UIGestureRecognizerState.Changed) {  

gestureRecognizer.View.Transform *= 
CGAffineTransform.MakeScale
(gestureRecognizer.Scale, gestureRecognizer.Scale);
// Reset the gesture recognizer's scale - the 
next callback will get a
delta from the current scale.
gestureRecognizer.Scale = 1f;   
imageForReset = gestureRecognizer.View;
}
}


 For Button Rotate

void ScaleImage (UIPinchGestureRecognizer gestureRecognizer)
{
AdjustAnchorPointForGestureRecognizer 
(gestureRecognizer);
if (gestureRecognizer.State == 
UIGestureRecognizerState.Began ||
gestureRecognizer.State == UIGestureRecognizerState.Changed) {  

gestureRecognizer.View.Transform *= 
CGAffineTransform.MakeScale
(gestureRecognizer.Scale, gestureRecognizer.Scale);
// Reset the gesture recognizer's scale - the 
next callback will get a
delta from the current scale.
gestureRecognizer.Scale = 1f;   
imageForReset = gestureRecognizer.View;
}
}




--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/I-want-perform-both-Zoom-and-Rotate-operations-simultaneously-tp4655829.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] iTunesConnect cryptography question (publishing)

2012-07-07 Thread Jason Awbrey
personally, I would just say no.  I don't think you're doing any of the
sorts of things they're worried about

On Fri, Jul 6, 2012 at 6:37 PM, rnendel11 rnende...@gmail.com wrote:

 I'm running through the publishing process and iTunes Connect wants to know
 if my app uses cryptography of any kind.

 I do salt and hash passwords used to access community features.  Does
 this
 count as cryptography, or is local hashing/keychain-storing of passwords
 exempt?  The app does not encrypt data for the user, just passwords for its
 own use.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/iTunesConnect-cryptography-question-publishing-tp4655826.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Implementing UIPickerView with data from Database --

2012-07-07 Thread Jason Awbrey
I haven't used the Picker much, but I would suggest trying to get it to
work first with some static data.  Then once you understand how it works,
try plugging in live data from the db.

On Fri, Jul 6, 2012 at 3:00 AM, proindigo pro_ind...@live.com wrote:

 OK I have fixed the issue. Had to add an event to the
 PickerDataSourceClass.
 The error has disappeared. But I am not getting the items in my picker
 control. It is completely blank. This is how I have gone about the problem.
 Please go through the code listings below to have an understanding of my
 approach. Maybe you will be able to spot some logical mistakes.

 Here they are:--

 PickerFacilityTemplate.cs
 --
 using System;

 namespace ASTONAPP
 {
 public class PickerFacilityTemplate
 {
 public PickerFacilityTemplate ()
 {
 }

 public int AssessmentID{get; set;}
 public int FacilityID{get; set;}
 public string FacilityName{get; set;}
 }
 }


 PickerFacilityTemplateGroup.cs
 
 using System;
 using System.Collections;
 using System.Collections.Generic;
 using System.Data;
 using System.IO;
 using MonoTouch.UIKit;
 namespace ASTONAPP
 {
 public class PickerFacilityTemplateGroup
 {
 public PickerFacilityTemplateGroup ()
 {
 }

 public ListPickerFacilityTemplate Items
 {
 get { return this._items; }
 set { this._items = value; }
 }
 protected ListPickerFacilityTemplate _items=new
 ListPickerFacilityTemplate();
 }
 }

 PickerDataModelSource.cs
 --
 using System;
 using System.Collections;
 using MonoTouch.UIKit;
 using System.Configuration;
 using System.IO;
 using System.Collections.Generic;
 using Mono.Data.Sqlite;
 using System.Data;
 using System.Data.Common;
 namespace ASTONAPP
 {
 public class PickerDataModelSource: UIPickerViewModel
 {
 public PickerDataModelSource ()
 {
 }

 public PickerDataModelSource
 (ListPickerFacilityTemplateGroup lst)
 {
 this.Items=lst;
 }

 public event EventHandlerEventArgs ValueChanged;

 public ListPickerFacilityTemplateGroup Items ;


 ListPickerFacilityTemplate _items = new
 ListPickerFacilityTemplate();

 public PickerFacilityTemplate SelectedItem
 {
 get
 {
 //return this._items[this._selectedIndex];
 return this._items[1];
 }
 }
 public int _selectedIndex = 0;

 public override int GetRowsInComponent (UIPickerView
 picker, int
 component)
 {
 return this._items.Count;
 }

 public override string GetTitle (UIPickerView picker, int
 row, int
 component)
 {
 Liststring titles=new Liststring();
 foreach(PickerFacilityTemplate pftp in _items)
 {
 //return
 this._items[row].FacilityName.ToString ();
 titles.Add (pftp.FacilityName.ToString ());
 }
 return titles.ToString ();

 }
 public override int GetComponentCount (UIPickerView picker)
 {
 return 1;
 }

 public override void Selected(UIPickerView picker, int
 row, int component)
 {
 this._selectedIndex = row;
 if (this.ValueChanged != null)
 {
 this.ValueChanged (this, new EventArgs ());
 }
 }

 }
 }



 The function in my DBHandler where I am fetching the items from database

 ---
 public ListPickerFacilityTemplate FetchFacility()
 {
 DataSet ds = new DataSet ();
 string sql = select * from ClientFacility order
 by FacilityName;
 this.CreateDBConnection ();
 SqliteDataAdapter sda = new SqliteDataAdapter
 (sql, sconn);
 sda.Fill (ds);
 ListPickerFacilityTemplate objfcl=new
 ListPickerFacilityTemplate();
 for(int i=0; ids.Tables[0].Rows.Count; i++)
 

Re: [MonoTouch] iTunesConnect cryptography question (publishing)

2012-07-07 Thread Nic Wise
Most of it is around algorythms which can't be exported to north
Korea, Iran, Cuba etc.

I think they have to ask. I just say no.

On Sat, Jul 7, 2012 at 1:31 PM, Jason Awbrey ja...@awbrey.net wrote:
 personally, I would just say no.  I don't think you're doing any of the
 sorts of things they're worried about


 On Fri, Jul 6, 2012 at 6:37 PM, rnendel11 rnende...@gmail.com wrote:

 I'm running through the publishing process and iTunes Connect wants to
 know
 if my app uses cryptography of any kind.

 I do salt and hash passwords used to access community features.  Does
 this
 count as cryptography, or is local hashing/keychain-storing of passwords
 exempt?  The app does not encrypt data for the user, just passwords for
 its
 own use.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/iTunesConnect-cryptography-question-publishing-tp4655826.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch




-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


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

2012-07-07 Thread Nic Wise
This one is confusing the hell out of me.

Works in the Simulator, but not on the device, so I assume it's a
linking or AOT problem

My mtouch params are: -aot nimt-trampolines=1024 --aot=full
and I've got link sdk assemblies for linking. I added the --aot=full
thing recently, or I get a different issue (see my other email)

Exception is:

Operation is not valid due to the current state of the object

at System.MonoType.GetGenericTypeDefinition () [0xd] in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System/MonoType.cs:673
at RestSharp.Deserializers.JsonDeserializer.BuildListm__31
(System.Type x) [0x0] in
/Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
System.Func`2 predicate, Fallback fallback) [0x00013] in
/Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:812
at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
System.Func`2 predicate) [0x7] in
/Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:843
at RestSharp.Deserializers.JsonDeserializer.BuildList (System.Type
type, System.Object parent) [0xc] in
/Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
at RestSharp.Deserializers.JsonDeserializer.Map (System.Object target,
IDictionary`2 data) [0x0031d] in
/Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:152
at RestSharp.Deserializers.JsonDeserializer.Deserialize[MetaData]
(IRestResponse response) [0x000bf] in
/Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:50
at RestSharp.RestClient.Deserialize[MetaData] (IRestRequest request,
IRestResponse raw) [0x0004a] in
/Users/nic/code/git/GitHub/RestSharp/RestSharp/RestClient.cs:505


-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Failed to load AOT module 'mscorlib'

2012-07-07 Thread Nic Wise
Appears it's a known issue with 5.3.x.

Fix is:
-aot nimt-trampolines=512, --aot=full

NOTE the comma.

On Sat, Jul 7, 2012 at 12:37 PM, Nic Wise n...@fastchicken.co.nz wrote:
  Jul  7 12:32:51 unknown MobileAgent[1275] Warning: MonoTouch:
 Socket error while connecting to MonoDevelop on 192.168.1.69:1:
 Connection refused
 Jul  7 12:32:51 unknown
 UIKitApplication:com.bigtedltd.mobileAgent[0x8b5b][1275] Notice:
 Failed to load AOT module 'mscorlib' while running in aot-only mode:
 not compiled with --aot=full.

 This is with 5.3.4 (latest, beta)

 my addition mtouch args now looks like this

 -aot nimt-trampolines=512 --aot=full

 (I just added the last bit, now it works)

 Whats this all about? Do I still need the increased trampolines? why
 the sudden needs for aot=full?

 N

 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop. 
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding! 
 http://goo.gl/Icp2



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


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 Nic Wise
And to fix my own issue (kinda)

This may be:

-aot nimt-trampolines=512,

NOTE the comma.

OR: I had a method, in a library somewhere, which was marked virtual
AND had a generic, which isn't allowed. I've removed the virtual (it's
in RestSharp, FWIW)



On Sat, Jul 7, 2012 at 3:46 PM, Nic Wise n...@fastchicken.co.nz wrote:
 This one is confusing the hell out of me.

 Works in the Simulator, but not on the device, so I assume it's a
 linking or AOT problem

 My mtouch params are: -aot nimt-trampolines=1024 --aot=full
 and I've got link sdk assemblies for linking. I added the --aot=full
 thing recently, or I get a different issue (see my other email)

 Exception is:

 Operation is not valid due to the current state of the object

 at System.MonoType.GetGenericTypeDefinition () [0xd] in
 /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/MonoType.cs:673
 at RestSharp.Deserializers.JsonDeserializer.BuildListm__31
 (System.Type x) [0x0] in
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
 at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
 System.Func`2 predicate, Fallback fallback) [0x00013] in
 /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:812
 at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
 System.Func`2 predicate) [0x7] in
 /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:843
 at RestSharp.Deserializers.JsonDeserializer.BuildList (System.Type
 type, System.Object parent) [0xc] in
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
 at RestSharp.Deserializers.JsonDeserializer.Map (System.Object target,
 IDictionary`2 data) [0x0031d] in
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:152
 at RestSharp.Deserializers.JsonDeserializer.Deserialize[MetaData]
 (IRestResponse response) [0x000bf] in
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:50
 at RestSharp.RestClient.Deserialize[MetaData] (IRestRequest request,
 IRestResponse raw) [0x0004a] in
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/RestClient.cs:505


 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop. 
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding! 
 http://goo.gl/Icp2



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Failed to load AOT module 'mscorlib'

2012-07-07 Thread Nic Wise
oops, that should be

-aot nimt-trampolines=512,

the full is already included, but without the comma, it's =512full,
which isn't right.

Xamarin know about the bug (Miguel pointed me at the bug report)

 for anyone hitting this via Google sometime 

On Sat, Jul 7, 2012 at 5:47 PM, Nic Wise n...@fastchicken.co.nz wrote:
 Appears it's a known issue with 5.3.x.

 Fix is:
 -aot nimt-trampolines=512, --aot=full

 NOTE the comma.

 On Sat, Jul 7, 2012 at 12:37 PM, Nic Wise n...@fastchicken.co.nz wrote:
  Jul  7 12:32:51 unknown MobileAgent[1275] Warning: MonoTouch:
 Socket error while connecting to MonoDevelop on 192.168.1.69:1:
 Connection refused
 Jul  7 12:32:51 unknown
 UIKitApplication:com.bigtedltd.mobileAgent[0x8b5b][1275] Notice:
 Failed to load AOT module 'mscorlib' while running in aot-only mode:
 not compiled with --aot=full.

 This is with 5.3.4 (latest, beta)

 my addition mtouch args now looks like this

 -aot nimt-trampolines=512 --aot=full

 (I just added the last bit, now it works)

 Whats this all about? Do I still need the increased trampolines? why
 the sudden needs for aot=full?

 N

 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop. 
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding! 
 http://goo.gl/Icp2



 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop. 
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding! 
 http://goo.gl/Icp2



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


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 weird stuff (like System.ArgumentException: failed
to convert parameters at System.Reflection.MonoMethod.Invoke... on both
Simulator and Device), but I figured it could be my code being
incompatible, as I just updated RestSharp, which I haven't done in ages.

Mikkel

On Sat, Jul 7, 2012 at 6:58 PM, Nic Wise n...@fastchicken.co.nz wrote:

 And to fix my own issue (kinda)

 This may be:

 -aot nimt-trampolines=512,

 NOTE the comma.

 OR: I had a method, in a library somewhere, which was marked virtual
 AND had a generic, which isn't allowed. I've removed the virtual (it's
 in RestSharp, FWIW)



 On Sat, Jul 7, 2012 at 3:46 PM, Nic Wise n...@fastchicken.co.nz wrote:
  This one is confusing the hell out of me.
 
  Works in the Simulator, but not on the device, so I assume it's a
  linking or AOT problem
 
  My mtouch params are: -aot nimt-trampolines=1024 --aot=full
  and I've got link sdk assemblies for linking. I added the --aot=full
  thing recently, or I get a different issue (see my other email)
 
  Exception is:
 
  Operation is not valid due to the current state of the object
 
  at System.MonoType.GetGenericTypeDefinition () [0xd] in
  /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/MonoType.cs:673
  at RestSharp.Deserializers.JsonDeserializer.BuildListm__31
  (System.Type x) [0x0] in
 
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
  at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
  System.Func`2 predicate, Fallback fallback) [0x00013] in
 
 /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:812
  at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
  System.Func`2 predicate) [0x7] in
 
 /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:843
  at RestSharp.Deserializers.JsonDeserializer.BuildList (System.Type
  type, System.Object parent) [0xc] in
 
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
  at RestSharp.Deserializers.JsonDeserializer.Map (System.Object target,
  IDictionary`2 data) [0x0031d] in
 
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:152
  at RestSharp.Deserializers.JsonDeserializer.Deserialize[MetaData]
  (IRestResponse response) [0x000bf] in
 
 /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:50
  at RestSharp.RestClient.Deserialize[MetaData] (IRestRequest request,
  IRestResponse raw) [0x0004a] in
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/RestClient.cs:505
 
 
  --
  Nic Wise
  t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
  b. http://www.fastchicken.co.nz/
 
  Earnest: Self-employed? Track your business expenses and income.
  http://earnestapp.com
  Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
  mobileAgent (for FreeAgent): get your accounts in your pocket.
  http://goo.gl/IuBU
  Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
  London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2



 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


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 Nic Wise
yeah, me too. I just pulled in 103.1, which I think is causing issues.
I'll try the #define thing.

In RestClient.Sync.cs I had to remove the virtual from here too

public IRestResponseT ExecuteT(IRestRequest request) where T : new()
{
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 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 weird stuff (like System.ArgumentException: failed to
 convert parameters at System.Reflection.MonoMethod.Invoke... on both
 Simulator and Device), but I figured it could be my code being incompatible,
 as I just updated RestSharp, which I haven't done in ages.

 Mikkel

 On Sat, Jul 7, 2012 at 6:58 PM, Nic Wise n...@fastchicken.co.nz wrote:

 And to fix my own issue (kinda)

 This may be:

 -aot nimt-trampolines=512,

 NOTE the comma.

 OR: I had a method, in a library somewhere, which was marked virtual
 AND had a generic, which isn't allowed. I've removed the virtual (it's
 in RestSharp, FWIW)



 On Sat, Jul 7, 2012 at 3:46 PM, Nic Wise n...@fastchicken.co.nz wrote:
  This one is confusing the hell out of me.
 
  Works in the Simulator, but not on the device, so I assume it's a
  linking or AOT problem
 
  My mtouch params are: -aot nimt-trampolines=1024 --aot=full
  and I've got link sdk assemblies for linking. I added the --aot=full
  thing recently, or I get a different issue (see my other email)
 
  Exception is:
 
  Operation is not valid due to the current state of the object
 
  at System.MonoType.GetGenericTypeDefinition () [0xd] in
  /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/MonoType.cs:673
  at RestSharp.Deserializers.JsonDeserializer.BuildListm__31
  (System.Type x) [0x0] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
  at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
  System.Func`2 predicate, Fallback fallback) [0x00013] in
 
  /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:812
  at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
  System.Func`2 predicate) [0x7] in
 
  /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:843
  at RestSharp.Deserializers.JsonDeserializer.BuildList (System.Type
  type, System.Object parent) [0xc] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
  at RestSharp.Deserializers.JsonDeserializer.Map (System.Object target,
  IDictionary`2 data) [0x0031d] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:152
  at RestSharp.Deserializers.JsonDeserializer.Deserialize[MetaData]
  (IRestResponse response) [0x000bf] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:50
  at RestSharp.RestClient.Deserialize[MetaData] (IRestRequest request,
  IRestResponse raw) [0x0004a] in
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/RestClient.cs:505
 
 
  --
  Nic Wise
  t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
  b. http://www.fastchicken.co.nz/
 
  Earnest: Self-employed? Track your business expenses and income.
  http://earnestapp.com
  Nearest Bus: find when the next bus is coming to your stop.
  http://goo.gl/Vcz1p
  mobileAgent (for FreeAgent): get your accounts in your pocket.
  http://goo.gl/IuBU
  Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
  London Bike App: Find the nearest Boris Bike, and get riding!
  http://goo.gl/Icp2



 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch





-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget 

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 Nic Wise
I've bugged it:

https://bugzilla.xamarin.com/show_bug.cgi?id=6031

Feel free to add to that.

On Sat, Jul 7, 2012 at 6:27 PM, Nic Wise n...@fastchicken.co.nz wrote:
 yeah, me too. I just pulled in 103.1, which I think is causing issues.
 I'll try the #define thing.

 In RestClient.Sync.cs I had to remove the virtual from here too

 public IRestResponseT ExecuteT(IRestRequest request) where T : new()
 {
 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 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 weird stuff (like System.ArgumentException: failed to
 convert parameters at System.Reflection.MonoMethod.Invoke... on both
 Simulator and Device), but I figured it could be my code being incompatible,
 as I just updated RestSharp, which I haven't done in ages.

 Mikkel

 On Sat, Jul 7, 2012 at 6:58 PM, Nic Wise n...@fastchicken.co.nz wrote:

 And to fix my own issue (kinda)

 This may be:

 -aot nimt-trampolines=512,

 NOTE the comma.

 OR: I had a method, in a library somewhere, which was marked virtual
 AND had a generic, which isn't allowed. I've removed the virtual (it's
 in RestSharp, FWIW)



 On Sat, Jul 7, 2012 at 3:46 PM, Nic Wise n...@fastchicken.co.nz wrote:
  This one is confusing the hell out of me.
 
  Works in the Simulator, but not on the device, so I assume it's a
  linking or AOT problem
 
  My mtouch params are: -aot nimt-trampolines=1024 --aot=full
  and I've got link sdk assemblies for linking. I added the --aot=full
  thing recently, or I get a different issue (see my other email)
 
  Exception is:
 
  Operation is not valid due to the current state of the object
 
  at System.MonoType.GetGenericTypeDefinition () [0xd] in
  /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/MonoType.cs:673
  at RestSharp.Deserializers.JsonDeserializer.BuildListm__31
  (System.Type x) [0x0] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
  at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
  System.Func`2 predicate, Fallback fallback) [0x00013] in
 
  /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:812
  at System.Linq.Enumerable.First[Type] (IEnumerable`1 source,
  System.Func`2 predicate) [0x7] in
 
  /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:843
  at RestSharp.Deserializers.JsonDeserializer.BuildList (System.Type
  type, System.Object parent) [0xc] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:201
  at RestSharp.Deserializers.JsonDeserializer.Map (System.Object target,
  IDictionary`2 data) [0x0031d] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:152
  at RestSharp.Deserializers.JsonDeserializer.Deserialize[MetaData]
  (IRestResponse response) [0x000bf] in
 
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/Deserializers/JsonDeserializer.cs:50
  at RestSharp.RestClient.Deserialize[MetaData] (IRestRequest request,
  IRestResponse raw) [0x0004a] in
  /Users/nic/code/git/GitHub/RestSharp/RestSharp/RestClient.cs:505
 
 
  --
  Nic Wise
  t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
  b. http://www.fastchicken.co.nz/
 
  Earnest: Self-employed? Track your business expenses and income.
  http://earnestapp.com
  Nearest Bus: find when the next bus is coming to your stop.
  http://goo.gl/Vcz1p
  mobileAgent (for FreeAgent): get your accounts in your pocket.
  http://goo.gl/IuBU
  Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
  London Bike App: Find the nearest Boris Bike, and get riding!
  http://goo.gl/Icp2



 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch





 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find 

Re: [MonoTouch] How to use Youtube API in monotouch

2012-07-07 Thread Tomasz Cielecki
You will have to communicate with YouTube's web service just like the
YouTube API docs say:
https://developers.google.com/youtube/2.0/developers_guide_protocol_audience

As far as I know it is just HTTP requests and JSON results, so it
should be fairly straight forward.

On Sat, Jul 7, 2012 at 5:33 AM, Aziz a-alma...@hotmail.com wrote:
 Dear all

 I want to develop application that display the videos of specific channel on
 the youtube in the app ..

 the idea is:
 Choose channel (I have 3 Channels)  choose Episodes  the video plays

 is there an open source app example or a useful doc ?

 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/How-to-use-Youtube-API-in-monotouch-tp4655827.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Recording Sound

2012-07-07 Thread Phil Cockfield
I'm working with the *Sound* sample app:

https://github.com/xamarin/monotouch-samples/blob/master/Sound/Sound/SoundViewController.cs


It works for the first recording, but all subsequent recordings don't
record.  Or more specifically, I'm finding that on the Stop Recording on
the 2nd..n recording the *recorder.finished* callback never gets invoked
(see *line 55*).

Is this a bug in the demo. Is there something about recorders that they
perhaps need to be more fully disposed of or something.

I'm loving that there is so little code needed to do this kind of thing.

Thanks guys!

-- 
*Phil *Cockfield
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch