[Cocoa-sharp] Open Source Project (tiny one)

Andrew Brehm ajbrehm at gmail.com
Mon Feb 25 18:55:20 EST 2008


How can I get a Cocoa# program to do something when the window loads?

[Export("awakeFromNib:")]
public void awakeFromNib()
        {
            // whatever...
        }

That doesn't seem to work.

I did set my class as the delegate for the window, the application,
and the file owner.

Also, and this is perhaps a stupid question, how do I create a
multiline NSTextField?




On Mon, Feb 25, 2008 at 12:24 PM, Andrew Brehm <ajbrehm at gmail.com> wrote:
> After experimenting with Cocoa# a bit I have started a very small project.
>
>  It's a cross-platform /etc/hosts file editor.
>
>  I have a first version running on Windows and Mac OS X (using
>  Winforms). I don't spend much time on it.
>
>  Features it has:
>
>  - Winforms support
>  - separate classes and files for file system and GUI interaction
>  - determines location of hosts file depending on platform
>  - loads hosts file
>  - saves hosts file
>
>  Features I want in it:
>
>  - Cocoa GUI for Mac OS X version
>  - import hosts file from another machine on the network
>  - push hosts file to another machine on the network
>  - push hosts file to several machines on the network
>  - synchronise hosts file from several machines (maybe)
>  - some regular expression tricks to check the hosts file format (at some point)
>  - whatever seems helpful (pinging names in the hosts file etc.)
>
>  I currently use a number of scripts to keep my hosts files in sync in
>  my home network.
>
>  I named it "StupidHostsEditor".
>
>  Yes, I know it's small and primitive, but I am stupid and lazy.
>
>  Regards,
>  Andrew.
>


More information about the Cocoa-sharp mailing list