This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (C)2011 to3oo mi2ukam1 tmiz.net | |
// | |
// interposing on objc sample | |
// $ g++ main.m -framework cocoa | |
// $ ./a.out | |
// 2011-12-20 12:12:37.159 a.out[533:903] hello | |
// 2011-12-20 12:12:37.164 a.out[533:903] world | |
#include <cocoa/cocoa.h> | |
#include <objc/objc-class.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using MonoMac.Foundation; | |
namespace KVOTestClock | |
{ | |
[Register("KVOTest")] | |
public class KVOTest : NSObject | |
{ | |
public KVOTest () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using MonoMac.Foundation; | |
namespace KVOTestClock | |
{ | |
[Register("KVOTest")] | |
public class KVOTest : NSObject | |
{ | |
public KVOTest () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WARNING | |
// This file has been generated automatically by MonoDevelop to | |
// mirror C# types. Changes in this file made by drag-connecting | |
// from the UI designer will be synchronized back to C#, but | |
// more complex manual changes may not transfer correctly. | |
#import <Cocoa/Cocoa.h> | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MonoMac.Foundation; | |
namespace KVOTestClock | |
{ | |
[Register("KVOTest")] | |
public class KVOTest : NSObject | |
{ | |
public KVOTest () | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MonoMac.Foundation; | |
namespace KVOTestClock | |
{ | |
[Register("KVOTest")] | |
public class KVOTest : NSObject | |
{ | |
public KVOTest () | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace KVOTestClock | |
{ | |
public class KVOTest | |
{ | |
public KVOTest () | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoMac.Foundation; | |
using MonoMac.AppKit; | |
namespace MonoDemoProject | |
{ | |
public partial class MainWindowController : MonoMac.AppKit.NSWindowController | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ipy | |
import clr | |
clr.AddReference("System.Windows.Forms") | |
clr.AddReference('System.Drawing') | |
import System.Windows.Forms | |
import System.Drawing | |
myForm = System.Windows.Forms.Form() | |
myForm.Text = "2011 Mac Dev JP Advent Calendar" | |
myForm.Show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include "openssl/opensslv.h" | |
#include "openssl/sha.h" | |
void printBufferOfSha256(const unsigned char *output) | |
{ | |
int i = 0; | |
for(; i < SHA256_DIGEST_LENGTH; i++) { |