Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Marc Krochmal
Hi Jayson, On Sep 8, 2009, at 4:51 PM, Jayson Adams wrote: On Sep 8, 2009, at 3:31 PM, Marc Krochmal wrote: Hi Brent, I may have been one of those appalled Apple engineers. In general, [NSHost currentHost] is the worst API on the system and people should avoid it like the plague. Hi

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Jayson Adams
On Sep 8, 2009, at 3:31 PM, Marc Krochmal wrote: Hi Brent, I may have been one of those appalled Apple engineers. In general, [NSHost currentHost] is the worst API on the system and people should avoid it like the plague. Hi Marc, Can you tell why this is so? Best, __jayson Circus

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Marc Krochmal
Hi Brent, I may have been one of those appalled Apple engineers. In general, [NSHost currentHost] is the worst API on the system and people should avoid it like the plague. Jonathan, just use SCDynamicStoreCopyLocalHostName instead. gethostname probably isn't going to do what you want.

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Keith Duncan
While I don't speak for Apple, we ran into this with Daylite Server, and found out that you shouldn't be using those calls. I got a similar response, I had been using NSHost previously and hadn't noticed any delay so assumed it was using a local backing store. I ran the same code on the net

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
On 8 Sep 2009, at 22:44, Brent Gulanowski wrote: While I don't speak for Apple, we ran into this with Daylite Server, and found out that you shouldn't be using those calls. Basically, your computer is NOT the authority on your computer's host name. The DNS system is the authority. So these

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
On 8 Sep 2009, at 22:37, Jean-Daniel Dupas wrote: Le 8 sept. 2009 à 22:15, jonat...@mugginsoft.com a écrit : I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo] hostname] were quick and easy ways to get an mDN

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Brent Gulanowski
While I don't speak for Apple, we ran into this with Daylite Server, and found out that you shouldn't be using those calls. Basically, your computer is NOT the authority on your computer's host name. The DNS system is the authority. So these calls tend to trigger DNS lookups, at which point you're

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
On 8 Sep 2009, at 22:24, Jens Alfke wrote: On Sep 8, 2009, at 1:15 PM, jonat...@mugginsoft.com wrote: I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo] hostname] were quick and easy ways to get an mDNS frien

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Jean-Daniel Dupas
Le 8 sept. 2009 à 22:15, jonat...@mugginsoft.com a écrit : I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo] hostname] were quick and easy ways to get an mDNS friendly hostname such as imac-2.local On 10.6

[[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo] hostname] were quick and easy ways to get an mDNS friendly hostname such as imac-2.local On 10.6 I find that both these combinations block badly (NSProcessInfo