Questions tagged [nsconnection]

Questions regarding Apple's NSConnection class

Apple's NSConnection Class

An object that manages the communication between objects in different threads or between a thread and a process running on a local or remote system.

Docs: https://developer.apple.com/documentation/foundation/nsconnection

Famous Question: Best way to do interprocess communication on Mac OS X

38 questions
0
votes
1 answer

XMLParserDelegate, which errors to check?

I'm working with some XML parsing... I'm thinking of which errors I should be careful about: no Internet connection no data in the XML stream What else? How can I check for Internet connection errors? The only "link" to Internet is when the…
giancula
  • 1
  • 1
0
votes
1 answer

NSURLConnectionDataDelegate just work in App Delegate

(in MAC OSX- Xcode) I tried to read file by FTP using NSURLConnection class, it is work fine just if my code in main Application Delegate class (AppDelegate) but if i using it outside (another .h .m files) the connection delegate not called. Any…
0
votes
1 answer

NSSocketPortNameServer portForName:host: slow on Mavericks

With Mavericks [NSSocketPortNameServer portForName:host:] now takes around 5 seconds to resolve localhost. It used to be much much faster, around 0.01 seconds. My code is the same as in Apple's Introduction to Distributed Objects. I used to be able…
neoneye
  • 50,398
  • 25
  • 166
  • 151
0
votes
3 answers

Handling Internet Access Website Authentication on iOS

I'm writing an app for a college that will likely be used on campus. The college's wifi requires credentials to access the internet through a web page (such as AT&T hotspots). I would like my app to detect whether it's 'connected' to the internet or…
TheCodingArt
  • 3,436
  • 4
  • 30
  • 53
0
votes
0 answers

Cocoa - timed out when using NSConnection

I am trying to write a program that can connect over the network. I have a server and a client, and I would like to send notifications from the server to the clients. If I use my client to get infos from server, everything work well, but if I try to…
impact27
  • 527
  • 4
  • 15
0
votes
1 answer

Objective-C: Avoiding EXCEPTIONS when NSConnection to Distributed Objects fail

I'm using Objective-C Distributed Objects (DO) to share data from one application (that collects data from the network) to another (a patch inside Quartz Composer). When the connection to the distant object fails (when I shut down the first…
Adam
  • 913
  • 1
  • 9
  • 26
0
votes
1 answer

Objective-C Distributed Objects with ARC sever and 32bit proxy?

I have a 64bit application using ARC, that is serving up a distributed object. The application that uses the proxy object is a 32bit application, so it's not using ARC. Is this going to create problems for me? I also want to reuse my classes…
0
votes
0 answers

Parse Protected XML in XCODE

I was wondering if anyone could help to parse protected XML file in XCODE. Here is what I got, but I don't know how to mix up these things since I'm pretty new in XCODE. Connection with Authentication -(void)connection:(NSURLConnection…
danialmoghaddam
  • 343
  • 1
  • 6
  • 21
1 2
3