Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Monobjc;
- using Monobjc.Cocoa;
- using System.Runtime.InteropServices;
- namespace HaeString
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- ObjectiveCRuntime.LoadLibrary("Teksti.dylib", RuntimeLoadingOptions.Now);
- ObjectiveCRuntime.Initialize();
- NSAutoreleasePool pool = new NSAutoreleasePool();
- string x = Teksti.GetText();
- Console.WriteLine (x);
- pool.Release();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement