KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to resolve a NSNetService (named "My_Mac") to an IP in a background app with this code: NSNetService *service = [[NSNetService alloc] initWithDomain:@"local." type:@"_daap._tcp" name:@"My_Mac"]; [service setDelegate:self]; [service resolveWithTimeout:5]; And in the same class, I have these delegate methods defined: - (void)netServiceDidResolveAddress:(NSNetService *)sender - (void)netService:(NSNetService *)sender didNotResolve:(NSDictionary *)errorDict Here's the strange part: neither delegate methods get called unless I run a NSAlert after "[service resolveWithTimeout:5];". Any ideas?
Tags (comma-separated)
Save Edits
Cancel