Vending Objects in DO
Vending Objects in DO
- Subject: Vending Objects in DO
- From: Craig Bakalian <email@hidden>
- Date: Fri, 11 Apr 2003 06:13:35 -0400
Hi,
Can one vend and object in a init method of a NSWindowController? By
vend I mean the standard code snip below:
MyServerObject *server = [[MyServerObject alloc] init];
NSConnection *conn;
conn = [NSConnection defaultConnection];
[conn setRootObject: server];
[conn registerName: @"server"];
[[NSRunLoop currentRunLoop] configureAsServer];
[[NSRunLoop currentRunLoop] run];
The only vending DO examples I can find out there in documentation land
are placed inside the body of main().
Does the above have to be in main()?
Craig Bakalian
www.eThinkingCap.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.