Advertisement
Guest User

Untitled

a guest
May 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. using System;
  2. using Monobjc;
  3. using Monobjc.Cocoa;
  4. using System.Runtime.InteropServices;
  5.  
  6.  
  7. namespace HaeString
  8. {
  9. class MainClass
  10. {
  11. public static void Main (string[] args)
  12. {
  13. ObjectiveCRuntime.LoadLibrary("Teksti.dylib", RuntimeLoadingOptions.Now);
  14. ObjectiveCRuntime.Initialize();
  15.  
  16. NSAutoreleasePool pool = new NSAutoreleasePool();
  17.  
  18. string x = Teksti.GetText();
  19. Console.WriteLine (x);
  20.  
  21. pool.Release();
  22.  
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement