• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Vending Objects in DO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Vending Objects in DO
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Columns with diminishing number of rows?
  • Next by Date: Re: NSMutableDictionary not sending release message to contained objects at dealloc time
  • Previous by thread: Re: Columns with diminishing number of rows?
  • Next by thread: Re: Vending Objects in DO
  • Index(es):
    • Date
    • Thread