site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Yes, you should be able to use a NSRunLoop only. Am 01.03.2006 um 17:47 schrieb Van Den Driessche, George: Hello again! http://lists.apple.com/archives/bluetooth-dev/2005/May/msg00012.html Many thanks, George _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: --- "Less code is better code" - Wil Shipley Ruotger Skupin, Mac OS X Software Engineering ilink Kommunikationssysteme GmbH Münzstr. 13; 10178 Berlin - Germany _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... Have a look at NSAutoreleasePool too, as NSApplication manages a pool for you and in a command line utility you need to do that yourself. I've just wasted about a day working out that if I want my delegates to be invoked in response to Bluetooth events, I have to run a run loop. I'm not the first to have this problem: I can find nowhere in the Bluetooth documentation that mentions this; I had to wait for a flash of inspiration at one in the morning. Now I've got an NSApplication that I run and my callbacks are getting called back. But I'm writing a command line utility that shouldn't need a whole NSApplication. Can I instead use an NSRunLoop as a more lightweight alternative? Initially it didn't seem to work but I might just be doing something slightly wrong. So I'd like to know whether it's worth pursuing at all. This email sent to site_archiver@lists.apple.com