Weird, anyways glad it worked

Alex

El 14/10/2012, a las 22:51, Dean Cleaver <[email protected]> 
escribió:

> Changing it to:
>  
> [Export("getBatteryCapacity:voltage:error:")]
> bool GetBatteryCapacity(ref int capacity, ref float voltage, out NSError 
> error);
>  
> Works J
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Dean Cleaver
> Sent: Sunday, October 14, 2012 22:49
> To: Alex Soto
> Cc: [email protected] ([email protected])
> Subject: Re: [MonoTouch] Correct Bindings
>  
> I’d made a mistake in the Export – I had this:
>  
> [Export("getBatteryCapacity:capacity:voltage:error:")]
>  
> However, it’s not returning the right values. Capacity should return 100 as 
> it’s fully charged, but it’s returning 0.
>  
> Dino
>  
> From: Alex Soto [mailto:[email protected]] 
> Sent: Sunday, October 14, 2012 22:42
> To: Dean Cleaver
> Cc: [email protected] ([email protected])
> Subject: Re: [MonoTouch] Correct Bindings
>  
>  
> [Export("getBatteryCapacity:voltage:error:")]
> bool GetBatteryCapacity(int capacity, float voltage, out NSError error);
>  
> thats it 
>  
> Alex
>  
> El 14/10/2012, a las 22:29, Dean Cleaver <[email protected]> 
> escribió:
> 
> 
> 
> And this one?
>  
> - (BOOL) getBatteryCapacity:
> (int *)
> capacity
> voltage:
> (float *)
> voltage
> error:
> (NSError **)
> error
>  
> The capacity and voltage seem to be out or ref parameters from the way the 
> method looks to work?
>  
> Dino
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Dean Cleaver
> Sent: Sunday, October 14, 2012 16:29
> To: [email protected]
> Subject: [MonoTouch] Correct Bindings
>  
> What would be the correct binding for this:
>  
> (id)
> + DTDevices::sharedDevice
> Creates and initializes new class instance or returns already initalized one.
>  
> Cheers,
> Dino
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>  

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to