Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X / Xcode: Getting TXT record using NSNetServiceBrowser



Hi Andrew,

Sorry for the bump, but does anyone know how to obtain the TXT record given a NSNetService? At the lowest level, I can call DNSServiceQueryRecord with the domain name received / constructed from the NSNetService result and rrtype TXT, but this feels clunky and bypasses the Cocoa framework, not to mention requiring me to build a completely separate callback processing loop.

Actually, using DNSServiceQueryRecord isn't really that difficulty, however, you can get the TXT record via NSNetServices by first calling "resolve" on the NSNetSerivce, and then by calling protocolSpecificInformation.


Here's a Q&A that talks about TXT record formats.

<http://developer.apple.com/qa/qa2001/qa1306.html>

Hope that helps.

-Marc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Rendezvous-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/rendezvous-dev/email@hidden

This email sent to email@hidden
References: 
 >OS X / Xcode: Getting TXT record using NSNetServiceBrowser (From: Andrew White <email@hidden>)
 >Re: OS X / Xcode: Getting TXT record using NSNetServiceBrowser (From: Chris Parker <email@hidden>)
 >Re: OS X / Xcode: Getting TXT record using NSNetServiceBrowser (From: Andrew White <email@hidden>)
 >Re: OS X / Xcode: Getting TXT record using NSNetServiceBrowser (From: "Andrew White" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.