Поддержите инструмент командной строки живым

Как бы сохранить инструмент командной строки работать вечно.

Это мой код:

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[])
{

    @autoreleasepool {

        [[NSDistributedNotificationCenter defaultCenter] addObserverForName:nil object:nil queue:nil usingBlock:^(NSNotification *notification)
         {
             NSLog(@"%@", notification);
         }];

        //Keep alive...

    }
    return 0;
}

Ответы на вопрос(2)

Ваш ответ на вопрос