[Mono-osx] Binding Objective C Types

tlapse tlapse at gmail.com
Fri Aug 31 22:20:11 UTC 2012

Duane, Thanks for the quick reply.

I've added the RequiredFramework line with my static library in my interface
file QLRTX.cs
[assembly: MonoMac.RequiredFramework("libQLRTX.a")]

and I've added the static library as a content resource in my test program

but it's not clear what to do with your AppDelegate code. Where does that
code go?

This is my QLRTX.cs file that I input to bmac.exe

/using MonoMac.Foundation;
using MonoMac.AppKit;

namespace QLRTX

	[BaseType (typeof (NSObject))]
	interface QLRT {
		[Export ("fSourceTicketPath")]
		NSMutableAttributedString fSourceTicketPath {get; set;}
		[Export ("setTicketPath")]
		void setTicketPath (NSString ticketPath);
		[Export ("send")]
		NSString send (NSString request);
		[Export ("unicodeToHex")]
		NSString unicodeToHex (NSString request);
		[Export ("unicodeFromHex")]
		NSString unicodeFromHex (NSString request);


View this message in context: http://mono.1490590.n4.nabble.com/Binding-Objective-C-Types-tp4656457p4656461.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list