Re: [MonoTouch] Newbie question : MonoDevelop error when creating outlet

2012-06-13 Thread Kerry Street
Kerry Street kcswork@... writes:

I submitted bug 5627 to Xamarin bugzilla:

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


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


[MonoTouch] Binding of Zebra SDK to Monotouch

2012-06-13 Thread Дмитрий Надеждин
Dear MonoTouch subscribers,

The same question is here:
http://stackoverflow.com/questions/11008726/binding-of-zebra-sdk-to-monotouch

Short version: I have created a binding for Zebra native library for mobile
printers and the basic functionality works fine (wireless connection
between the printer and the iPad, writing data to streams, printing out
text, etc.)
I want to print out PDFs and images, and the native library provides the
classes for that. However, I can't get it to work from Monotouch.


Long version: I have problem binding the structure described below.

@protocol ZebraPrinterConnection
- (BOOL) open;
- (void) close;
- (NSInteger) write:(NSData *)data error:(NSError **)error;
- (NSData *)read: (NSError**)error;

@interface TcpPrinterConnection : NSObjectZebraPrinterConnection {
 some @private properties
}
 - (id)initWithAddress:(NSString *)anAddress andWithPort:(
NSInteger)aPort;

@interface ZebraPrinterFactory : NSObject { }
  +(idZebraPrinter,NSObject) getInstance:(idZebraPrinterConnection,
NSObject) connection error:(NSError**)error


The tricky part here is to obtain ZebraPrinter instance in Monotouch code.
Note how ZebraPrinterFactory wants ZebraPrinterConnection to be passed to
it, but onlyTcpPrinterConnection has an actual constructor.
The connection classes work fine when bound like this:

[BaseType (typeof (NSObject))]
[Model]
interface ZebraPrinterConnection
{

[Export (open)] bool Open();

[Export (close)] void Close();
[Export (write:error:)] int Write(NSData data, out NSError error);
[Export (read:)] NSData Read(out NSError error);

}

[BaseType (typeof(NSObject))]
interface TcpPrinterConnection : ZebraPrinterConnection
{

[Export (initWithAddress:andWithPort:)] IntPtr Constructor (string
anAddress, int aPort);

}

Binding of ZebraPrinterFactory class is not as straightforward. If I bind
it like this:

[BaseType (typeof(NSObject))]
interface ZebraPrinterFactory
{

[Static, Export (getInstance:error:)]

ZebraPrinter getInstance(ZebraPrinterConnection connection, out NSError
error);

}

then I try to use something like

myConn = new TcpPrinterConnection(ipAddress, port);
myConn.Open ();
ZebraPrinter zPrinter = ZebraPrinterFactory.GetInstance(myConn, out err);
// compile-time error: Cannot convert TcpPrinterConnection
into ZebraPrinterConnection

I get a compile-time error. If I change the binding for Mono to
accept TcpPrinterConnection as parameter (I've tried multiple
configurations), I get runtime exception (System.InvalidCastException:
Cannot cast from source type to destination type.) which has no inner
exceptions and I have no idea which type could not be converted (strongly
suspecting that same conversion as above).
It's really frustrating having something ALMOST working, but not quite.

Any ideas? I'm starting to think of binding limitations already. Could
someone tell me if such structures can be bound at all?

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


Re: [MonoTouch] trying to understand the best way to call tableviewcontrollers in relation to GCing.

2012-06-13 Thread Alex White
Thanks Pete for the email,

The reason for trying this was because something is falling out of scope and 
being GC'd.

in all my classes the VC that are being called are declared at the top of the 
class and not at method level.

Here is some example code that I have narrowed down the issue.

private void backButton_Clicked(object sender, EventArgs e) {
// create a VC class;
revise = new ReviseVCiPhone();

// works but looks wrong as you are going backwards but the animation 
is forwards.
NavigationController.PushViewController(revise, true);

// works but no animation
//NavigationController.PushViewController(revise, false);

// this fails with GC issues as soon as you try to come back to this VC
//NavigationController.PopToViewController(revise, true);

// this fails with GC issues eventually.
//NavigationController.PopToRootViewController(true);
}

in my appDelegate class

navigationRoots = new UINavigationController [5] {
new UINavigationController (mainvc) {
TabBarItem = new UITabBarItem (Infomation, UIImage.FromBundle 
(Images/Toolbar/icon_information.png), 0),
} ,
new UINavigationController (revise) {
TabBarItem = new UITabBarItem (Revise, UIImage.FromBundle 
(Images/Toolbar/icon_book.png), 1)
} ,

-- snipped


thanks

Alex



On 12 Jun 2012, at 20:41, Pete Macko wrote:

 I usually don't hold references to VCs pushed onto the nav controller - just 
 let them go out of scope when they're popped off. Recreate them every time 
 you need to push one onto the stack. 
 
 
 On Jun 12, 2012, at 3:35 PM, Alex White wrote:
 
 Hi,
 
 I have a small application that goes several levels deep into 
 tableviewcontrollers, navigating down the tree works fine then back up works 
 fine, but the second time down the tree I hit errors where objects have been 
 GC'd.
 
 It is advisable to create a variable at the appdelegate level for each of 
 the tableviewcontrollers so they don't go out of scope or is there something 
 I am missing, Creating the objects at a local level means they are getting 
 GC'd very quickly.
 
 Thanks
 
 Alex
 ___
 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] Newbie: MonoTouch + Janrain Engage ?

2012-06-13 Thread Nic Wise
this might help a bit with the frameworks thing:

http://docs.xamarin.com/ios/advanced_topics/binding_objective-c_types/Binding_Types_Reference_Guide#LinkWithAttribute

especially LinkWithAttribute.Frameworks

Alex Soto pointed me at a tool in MonoMac which might make a lot of it
quicker once you have a .a output from xcode:

hey nic do you have skype?? i can help you with it

the tool you need is inside monomac its called parse.exe (you need to
download a copy of maccore and monomac then run make from
/monomac/src/ folder and it will generate parse.exe)

https://github.com/mono/monomac/tree/master/src

or just download it from here

http://dl.dropbox.com/u/2058130/parse.exe

all you have to do is

mono parse.exe yourheaderfile.h

but i must tell you that it just works as a starter point

(worked great for me for DropBox, tho I ended up not using it)





On Wed, Jun 13, 2012 at 6:01 AM, Pure Krome
pure.kr...@world-domination.com.au wrote:
 Hi folks,

 I'm trying to see if I could use the Janrain Engage social-sign in product
 with MonoTouch.

 They have an IOS sdk and full obj-c instructions about how to do it

 1) Code: https://github.com/janrain/engage.iphone
 2) How to use the code / instructions:
 https://rpxnow.com/docs/iphone#quicker

 I've tried to follow those instructions and I can't get past step #7

 add the Security framework and the MessageUI framework to your project

 Well, I can add those fine. But nothing compiles (in XCode).

 Also, the next step is real scary .. having to add obj-c .. but I'll deal
 with that later.

 --

 So .. has anyone tried using this library with MonoTouch?
 Can someone maybe post some hints or a blog post or something or see if they
 can get it to work with MT?

 Maybe this could be added to monotouch-samples or something?


 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/Newbie-MonoTouch-Janrain-Engage-tp4655337.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



-- 
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] The story of MonoTouch?

2012-06-13 Thread Nic Wise
Miguel or Joseph might be good ones to talk about that. Except Miguel
is at WWDC and Joseph is at TechEd :)

On Wed, Jun 13, 2012 at 10:46 AM, René Ruppert
rene.rupp...@googlemail.com wrote:
 Hi guys,

 is there a blog or something that tells the story of MonoTouch? I think it
 should even become a book!

 * How did it all start? What was the initial idea?
 * How long was the planning phase?
 * What was the first line of code that was written?
 * How much reverse engineering was involved to find out how to get things
 working on an iPhone?
 * What was the first app that ran in MonoTouch on an iPhone?
 * What was the excitement when you got it working?
 * How planned all the technical details: ho to deal with ref counting and
 GC? Will it be a X-compiler?

 The story of MonoTouch is so amazing, it has to be written down by
 somebody!

 René

 ___
 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] Binding Sample Make File

2012-06-13 Thread ZNNXL
*Hello,

i try to build the binding sample.

In the readme i read:
To compile the Xcode Project and binding classes execute the make command
from the root directory.

if i use the make file in the main root, i get follow errors:
*
Last login: Wed Jun 13 12:32:39 on ttys000
/Users/pos/Desktop/BindingSample/Makefile ; exit;
rtt-admins-macbookpro52:~ pos$ /Users/pos/Desktop/BindingSample/Makefile ;
exit;/Users/pos/Desktop/BindingSample/Makefile: line 1: all:: command not
found
/Users/pos/Desktop/BindingSample/Makefile: line 2: cd: src/binding/: No such
file or directory
make: *** No targets specified and no makefile found.  Stop.
/Users/pos/Desktop/BindingSample/Makefile: line 4: clean:: command not found
/Users/pos/Desktop/BindingSample/Makefile: line 5: cd: src/binding: No such
file or directory
make: *** No rule to make target `clean'.  Stop.
logout

[Process completed]

*I found in the source binding folder a make file. If i use this:
*
Last login: Wed Jun 13 12:41:17 on ttys000
rtt-admins-macbookpro52:~ pos$
/Users/pos/Desktop/BindingSample/src/binding/Makefile ; exit;
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 4: PROJECT_ROOT:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 9: all:: command
not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 11:
libXMBindingLibrarySample-i386.a:: command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: PROJECT:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: TARGET:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: MSBUILD::
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13:
PROJECT_ROOT: command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13: TARGET:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13: -mv: command
not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 15:
libXMBindingLibrarySample-armv6.a:: command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: PROJECT:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: TARGET:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: MSBUILD::
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17:
PROJECT_ROOT: command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17: TARGET:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17: -mv: command
not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 19:
libXMBindingLibrarySample-armv7.a:: command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: PROJECT:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: TARGET:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: MSBUILD::
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21:
PROJECT_ROOT: command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21: TARGET:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21: -mv: command
not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 23:
libXMBindingLibrarySampleUniversal.a:: command not found
lipo: no input files specified
lipo: Usage: lipo [input_file] ... [-arch arch_type input_file] ...
[-info] [-detailed_info] [-output output_file] [-create] [-arch_blank
arch_type] [-thin arch_type] [-remove arch_type] ... [-extract
arch_type] ... [-extract_family arch_type] ... [-verify_arch arch_type
...] [-replace arch_type file_name] ...
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 26:
XMBindingLibrary.dll:: command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 27: BTOUCH:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 27: -unsafe:
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 29: clean::
command not found
/Users/pos/Desktop/BindingSample/src/binding/Makefile: line 30: -rm: command
not found
logout

[Process completed]

what is my fail?

thanks

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Binding-Sample-Make-File-tp4655345.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] Binding Sample Make File

2012-06-13 Thread ZNNXL
Okay, can be ignore. 

a path in the makefile was wrong

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Binding-Sample-Make-File-tp4655345p4655346.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] iOS 6 support

2012-06-13 Thread Miljenko Cvjetko

Hi

I can recall that Mike Bluestein said in his webinar on 2012-05-31 
something like:

We could publish on the same day, but we let Apple guys have their day

regards

mel

On 2012.06.12 07:22, Jason Awbrey wrote:
MT support for iOS5 was released the same day as the official Apple 
release.  Before that it was usually within a few days


as I recall 5 was the first version where they has any public beta 
releases, but I'm not sure how long it took for the beta to come out.


On Tue, Jun 12, 2012 at 12:18 AM, Dean Cleaver 
dean.clea...@xceptionsoftware.com 
mailto:dean.clea...@xceptionsoftware.com wrote:


Yep -- I think iOS5 support was out within days if not the same day...

*From:*Mike Fechner [mailto:mike.fech...@consultingwerk.de
mailto:mike.fech...@consultingwerk.de]
*Sent:* Tuesday, June 12, 2012 00:15
*To:* Dean Cleaver; sembrador; monotouch@lists.ximian.com
mailto:monotouch@lists.ximian.com
*Subject:* AW: [MonoTouch] iOS 6 support

Experience has shown, that the folks at Xamarin have always been
very fast with adopting the latest SDK's.

*Von:*monotouch-boun...@lists.ximian.com
mailto:monotouch-boun...@lists.ximian.com
[mailto:monotouch-boun...@lists.ximian.com]
mailto:[mailto:monotouch-boun...@lists.ximian.com] *Im Auftrag
von *Dean Cleaver
*Gesendet:* Dienstag, 12. Juni 2012 07:07
*An:* sembrador; monotouch@lists.ximian.com
mailto:monotouch@lists.ximian.com
*Betreff:* Re: [MonoTouch] iOS 6 support

Probably when iOS6 is out.

Just saying.

*From:*monotouch-boun...@lists.ximian.com
mailto:monotouch-boun...@lists.ximian.com
[mailto:monotouch-boun...@lists.ximian.com]
mailto:[mailto:monotouch-boun...@lists.ximian.com] *On Behalf Of
*sembrador
*Sent:* Tuesday, June 12, 2012 00:01
*To:* monotouch@lists.ximian.com mailto:monotouch@lists.ximian.com
*Subject:* [MonoTouch] iOS 6 support

Hi, I work for a software development company and we want to know,
when we have support for iOS 6. Thanks.



View this message in context: iOS 6 support
http://monotouch.2284126.n4.nabble.com/iOS-6-support-tp4655303.html
Sent from the MonoTouch mailing list archive
http://monotouch.2284126.n4.nabble.com/ at Nabble.com.


___
MonoTouch mailing list
MonoTouch@lists.ximian.com mailto: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



--
Miljenko Cvjetko dipl.ing. ET
Direktor/CEO
Projektant rjes(enja/Solution Architect 
Razvojni programer/Senior developer
Voditelj projekta/Project Manager

IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 777
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvje...@holisticware.net
w: http://www.holisticware.net

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


[MonoTouch] Failed to find selector

2012-06-13 Thread Michal Sartoris
In MT 5.2.12 I'm getting exception Failed to find selector handleTapFrom: on 
Test.TestViewController+OtherView. I have one UIView derived class which 
creates and adds tap gesture recognizer to itself in constructor. Then I have 
another class derived from previous one. Any tap on second view causes 
exception.

namespace Test
{
public class TestViewController : UIViewController
{
private OtherView _mainView;

   private class MyView : UIView
   {
   private UITapGestureRecognizer 
_recognizer;

   public MyView() { Initialize(); }

   public 
MyView(System.Drawing.RectangleF frame) : base(frame) { Initialize(); }

   private void Initialize()
   {
   _recognizer = 
new UITapGestureRecognizer(this, new 
MonoTouch.ObjCRuntime.Selector(handleTapFrom:));
   
AddGestureRecognizer(_recognizer);
   }

   [Export(handleTapFrom:), 
Preserve()]
   private void 
HandleTap(UITapGestureRecognizer recognizer)
   {
   
Console.WriteLine(Tap);
   }
   }

   private class OtherView : MyView
   {
   public OtherView() {}
   public 
OtherView(System.Drawing.RectangleF frame) : base(frame) {}
   }
   #endregion

   #region Constructor
   public TestViewController() {}

public override void LoadView()
   {
   _mainView = new 
OtherView(UIScreen.MainScreen.ApplicationFrame);

   this.View = _mainView;
   }
}
}

Any idea why? Bug? The same works in obj-c.

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


Re: [MonoTouch] Newbie: File - New - MonoTouch Sln - XCode build error

2012-06-13 Thread Jeff Stedfast
Hi Pure,

The Objective-C projects generated by MonoDevelop and exported to Xcode are
not meant to be buildable, they are simply meant to allow you to construct
your UIs and connect Actions  Outlets.

Hope that helps,

Jeff

On Wed, Jun 13, 2012 at 12:52 AM, Pure Krome 
pure.kr...@world-domination.com.au wrote:

 Hi folks,

 I'm not sure if this is right nor not .. but if I create a new default
 MonoTouch solution (eg. Single view or Master-Detail, etc)... before i
 change any code i can build and run .. which works.

 but

 if I double click one of the .xib files, it opens up XCode (kewl..) and
 then
 i build .. and i get 2x errors.

 Is that right?

 -PK-

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Newbie-File-New-MonoTouch-Sln-XCode-build-error-tp4655336.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] Newbie question : MonoDevelop error when creating outlet

2012-06-13 Thread Jeff Stedfast
Hi John and Kerry,

This bug has been fixed in the 3.0.3.1 beta. Can you verify?

Jeff

On Wed, Jun 13, 2012 at 2:35 AM, Kerry Street kcsw...@live.com wrote:

 Kerry Street kcswork@... writes:

 I submitted bug 5627 to Xamarin bugzilla:

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


 ___
 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


[MonoTouch] How to use a UILabel as a button?

2012-06-13 Thread Chris_M

I hope this is a simple question -- I looked but didn't find a MonoTouch
oriented answer, although surely this has come up before. 

Anyway, I'm displaying text data from a database in a UIViewController (I
have reasons for not using a UITableView to display the data). I'm using
UILabels and it's all going swimmingly and looks great, but I have a few
fields that are URLs. My stakeholders, quite reasonably, would like for the
user to be able to tap on those URLs and have the page open in a webview. 

So my question is: How can I make a UILabel function as a button? Or is
there a way I can dynamically create a UIButton programmatically from a text
field without using an image? (I've built this view entirely
programmatically, so I'm looking for answers that avoid using
Xcode/Interface Builder.)


--Chris

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-use-a-UILabel-as-a-button-tp4655352.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] Binding Sample Make File

2012-06-13 Thread Jeff Stedfast
Hi Martin,

The way to build the bindings is to run the `make` command at the
command-line while in the toplevel monotouch-bindings directory (or the
binding directory of the binding you want).

It looks like you tried to actually run the Makefile file, but it is not a
script - it is meant to be interpreted by the 'make' program.

Hope that helps,

Jeff

On Wed, Jun 13, 2012 at 6:42 AM, ZNNXL martin.r...@rtt.ag wrote:

 *Hello,

 i try to build the binding sample.

 In the readme i read:
 To compile the Xcode Project and binding classes execute the make command
 from the root directory.

 if i use the make file in the main root, i get follow errors:
 *
 Last login: Wed Jun 13 12:32:39 on ttys000
 /Users/pos/Desktop/BindingSample/Makefile ; exit;
 rtt-admins-macbookpro52:~ pos$ /Users/pos/Desktop/BindingSample/Makefile ;
 exit;/Users/pos/Desktop/BindingSample/Makefile: line 1: all:: command not
 found
 /Users/pos/Desktop/BindingSample/Makefile: line 2: cd: src/binding/: No
 such
 file or directory
 make: *** No targets specified and no makefile found.  Stop.
 /Users/pos/Desktop/BindingSample/Makefile: line 4: clean:: command not
 found
 /Users/pos/Desktop/BindingSample/Makefile: line 5: cd: src/binding: No such
 file or directory
 make: *** No rule to make target `clean'.  Stop.
 logout

 [Process completed]

 *I found in the source binding folder a make file. If i use this:
 *
 Last login: Wed Jun 13 12:41:17 on ttys000
 rtt-admins-macbookpro52:~ pos$
 /Users/pos/Desktop/BindingSample/src/binding/Makefile ; exit;
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 4:
 PROJECT_ROOT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 9: all::
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 11:
 libXMBindingLibrarySample-i386.a:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: PROJECT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: MSBUILD::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13:
 PROJECT_ROOT: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13: -mv:
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 15:
 libXMBindingLibrarySample-armv6.a:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: PROJECT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: MSBUILD::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17:
 PROJECT_ROOT: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17: -mv:
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 19:
 libXMBindingLibrarySample-armv7.a:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: PROJECT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: MSBUILD::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21:
 PROJECT_ROOT: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21: -mv:
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 23:
 libXMBindingLibrarySampleUniversal.a:: command not found
 lipo: no input files specified
 lipo: Usage: lipo [input_file] ... [-arch arch_type input_file] ...
 [-info] [-detailed_info] [-output output_file] [-create] [-arch_blank
 arch_type] [-thin arch_type] [-remove arch_type] ... [-extract
 arch_type] ... [-extract_family arch_type] ... [-verify_arch
 arch_type
 ...] [-replace arch_type file_name] ...
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 26:
 XMBindingLibrary.dll:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 27: BTOUCH:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 27: -unsafe:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 29: clean::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 30: -rm:
 command
 not found
 logout

 [Process completed]

 what is my fail?

 thanks

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Binding-Sample-Make-File-tp4655345.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 

Re: [MonoTouch] MonoTouch Binding TargetName in MakeFile

2012-06-13 Thread Jeff Stedfast
Hi Martin,

If you are using the Makefiles found in the monotouch-bindings project, you
can ignore the TARGET variable. That variable is only used for compiling
native Xcode projects. The only Makefile rule you should have is the .dll
rule.

Hope that helps,

Jeff

On Wed, Jun 13, 2012 at 9:33 AM, ZNNXL martin.r...@rtt.ag wrote:

 Hello,

 my question is, in the makefile we are found a TARGET.

 In the sample the target is XMBindingLibrarySample

 Now we ask ourselves what is meant by TARGET.

 At present, we get a error: xcodebuild:error: The project
 'Framework/***.xcodeproj' does not contain a target named
 'FrameWorkBindingLibrary'.

 We have included a file named FrameWorkBindingLibrary.cs with Exports.

 Thanks

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/MonoTouch-Binding-TargetName-in-MakeFile-tp4655347.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] How to use a UILabel as a button?

2012-06-13 Thread Jason Awbrey
if you just want to capture the touch event, you can do something like this
(in Obj-C, but same idea applies to MT)

http://stackoverflow.com/questions/3169798/handling-touch-event-in-uilabel-and-hooking-it-up-to-an-ibaction


On Wed, Jun 13, 2012 at 11:29 AM, Chris_M kungfuchri...@yahoo.com wrote:


 I hope this is a simple question -- I looked but didn't find a MonoTouch
 oriented answer, although surely this has come up before.

 Anyway, I'm displaying text data from a database in a UIViewController (I
 have reasons for not using a UITableView to display the data). I'm using
 UILabels and it's all going swimmingly and looks great, but I have a few
 fields that are URLs. My stakeholders, quite reasonably, would like for the
 user to be able to tap on those URLs and have the page open in a webview.

 So my question is: How can I make a UILabel function as a button? Or is
 there a way I can dynamically create a UIButton programmatically from a
 text
 field without using an image? (I've built this view entirely
 programmatically, so I'm looking for answers that avoid using
 Xcode/Interface Builder.)


 --Chris

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/How-to-use-a-UILabel-as-a-button-tp4655352.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] How to use a UILabel as a button?

2012-06-13 Thread Chris_M

Thanks for the response! Yeah, I just want to make the UILabel object
tap-able and have something happen when it's tapped. Unfortunately I have a
mental block where Objective-C makes absolutely no sense to me whatsoever (I
can't help it; just the mere sight of it makes my brain start to panic and
shut down). I don't know how to translate that Obj-C answer to C#/MT. How do
I do that in MonoTouch without any of that Obj-C, IBOutlet stuff?


--Chris


jawbrey wrote
 
 if you just want to capture the touch event, you can do something like
 this
 (in Obj-C, but same idea applies to MT)
 
 http://stackoverflow.com/questions/3169798/handling-touch-event-in-uilabel-and-hooking-it-up-to-an-ibaction
 


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-use-a-UILabel-as-a-button-tp4655352p4655356.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] How to use a UILabel as a button?

2012-06-13 Thread Jason Awbrey
a. in your view (which contains the label) define a handler for TouchesBegan

b. set the Tag property on your label so you can identify it

c. if the TouchesBegan handler, check the tag to see if the touch was in
your label (ie, ignore other touches)

if you're still stuck I can probably generate a real example of this

On Wed, Jun 13, 2012 at 12:09 PM, Chris_M kungfuchri...@yahoo.com wrote:


 Thanks for the response! Yeah, I just want to make the UILabel object
 tap-able and have something happen when it's tapped. Unfortunately I have a
 mental block where Objective-C makes absolutely no sense to me whatsoever
 (I
 can't help it; just the mere sight of it makes my brain start to panic and
 shut down). I don't know how to translate that Obj-C answer to C#/MT. How
 do
 I do that in MonoTouch without any of that Obj-C, IBOutlet stuff?


 --Chris


 jawbrey wrote
 
  if you just want to capture the touch event, you can do something like
  this
  (in Obj-C, but same idea applies to MT)
 
 
 http://stackoverflow.com/questions/3169798/handling-touch-event-in-uilabel-and-hooking-it-up-to-an-ibaction
 


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/How-to-use-a-UILabel-as-a-button-tp4655352p4655356.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] Binding of Zebra SDK to Monotouch

2012-06-13 Thread Jeff Stedfast
Hi,

I think what you want to do is change this:

[BaseType (typeof(NSObject))]
interface TcpPrinterConnection : ZebraPrinterConnection

to this:

[BaseType (typeof(ZebraPrinterConnection))]
interface TcpPrinterConnection

On Wed, Jun 13, 2012 at 4:19 AM, Дмитрий Надеждин denadezh...@gmail.comwrote:

 Dear MonoTouch subscribers,

 The same question is here:
 http://stackoverflow.com/questions/11008726/binding-of-zebra-sdk-to-monotouch

 Short version: I have created a binding for Zebra native library for
 mobile printers and the basic functionality works fine (wireless connection
 between the printer and the iPad, writing data to streams, printing out
 text, etc.)
 I want to print out PDFs and images, and the native library provides the
 classes for that. However, I can't get it to work from Monotouch.


 Long version: I have problem binding the structure described below.

 @protocol ZebraPrinterConnection
 - (BOOL) open;
 - (void) close;
 - (NSInteger) write:(NSData *)data error:(NSError **)error;
 - (NSData *)read: (NSError**)error;

 @interface TcpPrinterConnection : NSObjectZebraPrinterConnection {
  some @private properties
 }
  - (id)initWithAddress:(NSString *)anAddress andWithPort:(
 NSInteger)aPort;

 @interface ZebraPrinterFactory : NSObject { }
   +(idZebraPrinter,NSObject) getInstance:(idZebraPrinterConnection,
 NSObject) connection error:(NSError**)error


 The tricky part here is to obtain ZebraPrinter instance in Monotouch code.
 Note how ZebraPrinterFactory wants ZebraPrinterConnection to be passed to
 it, but onlyTcpPrinterConnection has an actual constructor.
 The connection classes work fine when bound like this:

 [BaseType (typeof (NSObject))]
 [Model]
 interface ZebraPrinterConnection
 {

 [Export (open)] bool Open();

 [Export (close)] void Close();
 [Export (write:error:)] int Write(NSData data, out NSError error);
 [Export (read:)] NSData Read(out NSError error);

 }

 [BaseType (typeof(NSObject))]
 interface TcpPrinterConnection : ZebraPrinterConnection
 {

 [Export (initWithAddress:andWithPort:)] IntPtr Constructor (string
 anAddress, int aPort);

 }

 Binding of ZebraPrinterFactory class is not as straightforward. If I bind
 it like this:

 [BaseType (typeof(NSObject))]
 interface ZebraPrinterFactory
 {

 [Static, Export (getInstance:error:)]

 ZebraPrinter getInstance(ZebraPrinterConnection connection, out NSError
 error);

 }

 then I try to use something like

 myConn = new TcpPrinterConnection(ipAddress, port);
 myConn.Open ();
 ZebraPrinter zPrinter = ZebraPrinterFactory.GetInstance(myConn, out err);
 // compile-time error: Cannot convert TcpPrinterConnection
 into ZebraPrinterConnection

 I get a compile-time error. If I change the binding for Mono to
 accept TcpPrinterConnection as parameter (I've tried multiple
 configurations), I get runtime exception (System.InvalidCastException:
 Cannot cast from source type to destination type.) which has no inner
 exceptions and I have no idea which type could not be converted (strongly
 suspecting that same conversion as above).
 It's really frustrating having something ALMOST working, but not quite.

 Any ideas? I'm starting to think of binding limitations already. Could
 someone tell me if such structures can be bound at all?

 Regards, Dmitry

 ___
 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] The story of MonoTouch?

2012-06-13 Thread Jonathan Pryor
I wasn't there at the very beginning, but I was there close to the beginning...

On Jun 13, 2012, at 5:46 AM, René Ruppert wrote:
 is there a blog or something that tells the story of MonoTouch? I think it 
 should even become a book!

Miguel also wrote a blog article about MonoTouch history:

http://tirania.org/blog/archive/2009/Sep-14.html

 * How did it all start? What was the initial idea?

As per Miguel's blog, after the Mono 2.0 release Miguel asked his blog readers 
to fill out a survey indicating where Mono should go next, and they said 
iPhone! Given that System.Windows.Forms is horribly crappy on non-Windows 
platforms, binding the native API is the only sane thing to do...

 * What was the first line of code that was written?

I have no idea. From the commit log, various patches to mono were first, 
followed by a full sample app. I don't think I'd be far off in guessing that 
the first actual line of C# written was:

using System;

;-)

 * How much reverse engineering was involved to find out how to get things 
 working on an iPhone?

That would be a question for Mac-guru Geoff Norton. My understanding is that 
the basic binding scenario didn't require much in the way of reverse 
engineering: it's largely just a binding of Objective-C that doesn't require a 
JIT, and Objective-C is well understood.

 * What was the first app that ran in MonoTouch on an iPhone?

An internal test app, along the lines of Hello World with a button. Mono for 
Android had a very similar first sample (make a button + callback actually 
work), a variation of which is the default Mono for Android Application 
template...

 - Jon

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


Re: [MonoTouch] How to use a UILabel as a button?

2012-06-13 Thread Chris_M

Thanks for helping me with this, Jason. I really appreciate it.

I haven't written a handler method before. I have multiple other buttons in
this view, and I'm handling them all like this: 

this.myButton.TouchUpInside += (sender, e) = {

this.websiteView = new WebsiteView ();

this.NavigationController.PushViewController (websiteView, true);
};

Which so far has been working just fine. I don't have any need to support
multiple touches or gestures or anything like that, just TouchUpInside on
one button at a time.

I Googled for handler methods and looked at several different examples and
entries on stackoverflow, but I'm mostly confused. I tried imitating and
adapting several different approaches to my project, but they haven't worked
so far.  

If you could show and explain an example, that would be incredibly helpful
(I apologize for taking up more of your time with this). 


--Chris


jawbrey wrote
 
 a. in your view (which contains the label) define a handler for
 TouchesBegan
 
 b. set the Tag property on your label so you can identify it
 
 c. if the TouchesBegan handler, check the tag to see if the touch was in
 your label (ie, ignore other touches)
 
 if you're still stuck I can probably generate a real example of this
 


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-use-a-UILabel-as-a-button-tp4655352p4655360.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] Newbie question : MonoDevelop error when creating outlet

2012-06-13 Thread kcstreet
Thank you Jeff.

@gshackles suggested I try to upgrade and it worked!

I can confirm that upgrading to MonoDevelop 3.0.3.1 made this error go away. 
I did see some odd behavior with the Assistant not showing the .h file one
time but that went away when I restarted Xcode.

I will try to update the bug I filed with this info.

For those who need to upgrade to MonoDevelop 3.0.3.1:

MonoDevelop menu
Check for updates
Switched Update Channel to Beta
MonoDevelop 3.0.3.1 Beta was available
Downloaded and upgraded to that version
Restart Mac (I had better luck after restart)



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Newbie-question-MonoDevelop-error-when-creating-outlet-tp4655092p4655361.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] The story of MonoTouch?

2012-06-13 Thread Karl Heinz Brehme Arredondo
I don't remember the option System.Windows.Forms on the survey :)

But crappy or not, I have Form, Control, ComboBox, Label and TextBox running
with main things that I use in Windows Mobile version, so each Form :
ViewController  can be easily ported to iPhone/iPad just making me the work
to draw it on Interface Builder and use there Label instead UILabel, etcŠ
and all my core manipulation of forms and controls from windows mobile runs
OK :) (that run ok on windows). Has the Windows.Forms name but uses native
controls of course.

Not perfectly yet with all options (missing menuItem and TabControl) but is
running and evaluating beside application development and soon future port
to WP and Android (ok I still do not know what to do with intents vs
TrueInstantiatedObject)

Karl

From:  Jonathan Pryor jonpr...@vt.edu
Date:  quarta-feira, 13 de junho de 2012 15:13
To:  René Ruppert rene.rupp...@googlemail.com
Cc:  monotouch@lists.ximian.com monotouch@lists.ximian.com
Subject:  Re: [MonoTouch] The story of MonoTouch?

I wasn't there at the very beginning, but I was there close to the
beginning...

On Jun 13, 2012, at 5:46 AM, René Ruppert wrote:
  is there a blog or something that tells the story of MonoTouch? I think it
 should even become a book!

Miguel also wrote a blog article about MonoTouch history:

http://tirania.org/blog/archive/2009/Sep-14.html

  * How did it all start? What was the initial idea?

As per Miguel's blog, after the Mono 2.0 release Miguel asked his blog
readers to fill out a survey indicating where Mono should go next, and they
said iPhone! Given that System.Windows.Forms is horribly crappy on
non-Windows platforms, binding the native API is the only sane thing to
do...

  * What was the first line of code that was written?

I have no idea. From the commit log, various patches to mono were first,
followed by a full sample app. I don't think I'd be far off in guessing that
the first actual line of C# written was:

using System;

;-)

  * How much reverse engineering was involved to find out how to get things
 working on an iPhone?

That would be a question for Mac-guru Geoff Norton. My understanding is that
the basic binding scenario didn't require much in the way of reverse
engineering: it's largely just a binding of Objective-C that doesn't require
a JIT, and Objective-C is well understood.

  * What was the first app that ran in MonoTouch on an iPhone?

An internal test app, along the lines of Hello World with a button. Mono
for Android had a very similar first sample (make a button + callback
actually work), a variation of which is the default Mono for Android
Application template...

 - Jon

___
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] The story of MonoTouch?

2012-06-13 Thread Nic Wise
I LOVE that original logo

Not sure who the middle finger is being given to, but i love it.

On Wed, Jun 13, 2012 at 7:13 PM, Jonathan Pryor jonpr...@vt.edu wrote:
 I wasn't there at the very beginning, but I was there close to the 
 beginning...

 On Jun 13, 2012, at 5:46 AM, René Ruppert wrote:
 is there a blog or something that tells the story of MonoTouch? I think it 
 should even become a book!

 Miguel also wrote a blog article about MonoTouch history:

        http://tirania.org/blog/archive/2009/Sep-14.html

 * How did it all start? What was the initial idea?

 As per Miguel's blog, after the Mono 2.0 release Miguel asked his blog 
 readers to fill out a survey indicating where Mono should go next, and they 
 said iPhone! Given that System.Windows.Forms is horribly crappy on 
 non-Windows platforms, binding the native API is the only sane thing to do...

 * What was the first line of code that was written?

 I have no idea. From the commit log, various patches to mono were first, 
 followed by a full sample app. I don't think I'd be far off in guessing that 
 the first actual line of C# written was:

        using System;

 ;-)

 * How much reverse engineering was involved to find out how to get things 
 working on an iPhone?

 That would be a question for Mac-guru Geoff Norton. My understanding is that 
 the basic binding scenario didn't require much in the way of reverse 
 engineering: it's largely just a binding of Objective-C that doesn't require 
 a JIT, and Objective-C is well understood.

 * What was the first app that ran in MonoTouch on an iPhone?

 An internal test app, along the lines of Hello World with a button. Mono 
 for Android had a very similar first sample (make a button + callback 
 actually work), a variation of which is the default Mono for Android 
 Application template...

  - Jon

 ___
 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


Re: [MonoTouch] The story of MonoTouch?

2012-06-13 Thread Jason Awbrey
I think that's probably supposed to be the index finger

On Wed, Jun 13, 2012 at 4:38 PM, Nic Wise n...@fastchicken.co.nz wrote:

 I LOVE that original logo

 Not sure who the middle finger is being given to, but i love it.

 On Wed, Jun 13, 2012 at 7:13 PM, Jonathan Pryor jonpr...@vt.edu wrote:
  I wasn't there at the very beginning, but I was there close to the
 beginning...
 
  On Jun 13, 2012, at 5:46 AM, René Ruppert wrote:
  is there a blog or something that tells the story of MonoTouch? I think
 it should even become a book!
 
  Miguel also wrote a blog article about MonoTouch history:
 
 http://tirania.org/blog/archive/2009/Sep-14.html
 
  * How did it all start? What was the initial idea?
 
  As per Miguel's blog, after the Mono 2.0 release Miguel asked his blog
 readers to fill out a survey indicating where Mono should go next, and they
 said iPhone! Given that System.Windows.Forms is horribly crappy on
 non-Windows platforms, binding the native API is the only sane thing to
 do...
 
  * What was the first line of code that was written?
 
  I have no idea. From the commit log, various patches to mono were first,
 followed by a full sample app. I don't think I'd be far off in guessing
 that the first actual line of C# written was:
 
 using System;
 
  ;-)
 
  * How much reverse engineering was involved to find out how to get
 things working on an iPhone?
 
  That would be a question for Mac-guru Geoff Norton. My understanding is
 that the basic binding scenario didn't require much in the way of reverse
 engineering: it's largely just a binding of Objective-C that doesn't
 require a JIT, and Objective-C is well understood.
 
  * What was the first app that ran in MonoTouch on an iPhone?
 
  An internal test app, along the lines of Hello World with a button.
 Mono for Android had a very similar first sample (make a button + callback
 actually work), a variation of which is the default Mono for Android
 Application template...
 
   - Jon
 
  ___
  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 mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Infinite loop and crash when calling native library - the ghost of bug #707?

2012-06-13 Thread Daniel MacDonald

Hi guys,

I hope someone has an idea, because I've been at this for days and am 
out of ideas. I have created bindings for a native library (TouchDB) and 
got everything working great in the simulator. But when I try to run in 
the device, I always get a crash as soon as I call anything other than a 
constructor (see full report at http://pastebin.com/1MbmeJQi ). 
Basically, its going in to an infinite (or very long) loop consisting of


wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_IntPtr_IntPtr_intptr_intptr_intptr_intptr 

wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr_0 


mono_jit_runtime_invoke
mono_runtime_invoke
monotouch_static_trampoline
wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_IntPtr_IntPtr_intptr_intptr_intptr_intptr 


...


I found an old mail indicating this was due to bug #707 (which is long 
since resolved, but then again I'm only on the latest MT stable so maybe 
not?) and I went ahead and rebuilt my library with THUMB disabled.


I verified visually with otool -tv that the library being linked had no 
thumb instructions, but I suppose there could be others lurking around.


On the MT side, I've tried building both with and without the LLVM 
compiler and with and without enabling thumb support and got the same 
results (certain combinations of compiler/arch/instruction set didn't 
build due to unresolved symbols for some framework libraries used by 
TouchDB though, which is bizarre, not ameliorated by adding them 
explicitly in the build phase in Xcode, but hopefully unrelated).


I am on Xcode 4.2 (stuck on snow leopard), using apple's llvm 3.0. I 
have not tried LLVM GCC 4.2 as the library sources use features it 
doesnt support.


Any help would be greatly appreciated, as my app is pretty much dead in 
the water without being able to link to this lib.


Thanks,

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


[MonoTouch] Secure json?

2012-06-13 Thread MojoDK
Hi,

(I'm a novice with this, please bear with me :)

I want to connect to a MVC4 webapi from my iOS App.

So first I need to login, sending a username and password.

If I do this in an https call, will this be safe enough? I don't want any
network sniffers out there sniffing passwords.

I thought of doing something like:

https://www.mysite.com/account/logon?username=blablapassword=blabla

Is there a better (safer) way?

Thanks!!!
Mojo

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Secure-json-tp4655312.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] Drag and Drop Icons similar to ICircuit App

2012-06-13 Thread lampshade9909
I had made a mistake in this post previously, it's fixed now.  Still looking
for a framework for drag and drop with hide-able menus similar to ICircuit
App.

Thanks all.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Drag-and-Drop-Icons-similar-to-ICircuit-App-tp4655246p4655328.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] New Macbook 2012 range and development

2012-06-13 Thread Greg Munn
I'm chomping at the bit, but not necessarily for the display - which will be 
gorgeous I'm sure, but rather for the 16GB ram.  I use windows vm's on my 
current MBP for work and would love to have the extra ram and USB 3.  For my 
money, I'll be getting the higher res screen as a 'bonus'.

I'll probably be wanting to run it in one of it's scaled modes, not entirely 
sure how well that will work with most apps at the moment.

Cheers,
Greg


On 13/06/2012, at 3:49 AM, bustergonad wrote:

 ok, don't shoot me - this is not strictly a Monotouch question.  However, as
 you guys (and girls) are all using Monotouch I'm guessing you are all on the
 same page as me with this..
 
 I've been waiting (patiently) for the new macbook range to come out to
 upgrade my development machine.  I was hoping for a 15 Air to be announced,
 but instead something rather different came along.  This new machine is
 going to be used mainly for development (with Monodevelop) and for general
 day to day browsing (I'm not a gamer).
 
 So the question is - are any of you chomping at the bit to develop on a
 Retina display Macbook Pro, do you think it'll help in any way shape or form
 to have that massive resolution available to you?!  I'm thinking not, and
 therefore going for a pimped up 13 Air with 8GB ram is a better and cheaper
 option.
 
 Thoughts anyone?!
 
 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/New-Macbook-2012-range-and-development-tp4655329.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