Alright, I think the rest is good. Would the XCode version have
anything to do with it, i only have 1.5. Or even the cocoa framework
(if it has changed, not sure which i got)
Here is the ApplicationController.cs
using System;
using Cocoa;
namespace TestApp
{
[Register("ApplicationController")]
class ApplicationController : Cocoa.Object
{
[Connect]
public Cocoa.Window mainWindow;
[Connect]
public Cocoa.TextField textField1;
public ApplicationController(System.IntPtr a) : base(a)
{
}
//Form.Load Event
[Export("applicationWillFinishLaunching:")]
public void FinishLoading(Cocoa.Notification notification)
{
Console.WriteLine("Form Loaded");
}
[Export("addButtonClick:")]
public void addButtonClick(Cocoa.Object sender)
{
Test();
}
public void Test()
{
string s;
s="Test";
textField1.Value=s;
s=textField1.Value;
}
}
}