Questions tagged [distributed-objects]

Distributed objects architecture enables objects in different threads or tasks, perhaps on different machines, to transparently send messages to each other

Distributed objects architecture enables objects in different threads or tasks, perhaps on different machines, to transparently send messages to each other. While there are many ways for threads and tasks to communicate with one another, distributed objects hides the mechanism behind the standard Objective-C messaging mechanism.
Distributed Objects Programming Topics

51 questions
5
votes
5 answers

How to Handle Singleton Classes in Distributed Environment

When an Application is Distributed across multiple JVMS my single ton class will have multiple instances at each JVM. I have to generate a Unique ID for this purpose i have to use a singleton pattern class. It is Working fine when in a Standalone…
5
votes
0 answers

NSConnection died after some time on 10.8

I'm using DO with for IPC. I used following code. Its working fine in 10.6 and 10.7 but on 10.8 die even both application were ideal. // HELPER NSConnection *connection =[NSConnection new]; [[NSNotificationCenter defaultCenter] addObserver:self …
mandeep-dhiman
  • 2,505
  • 2
  • 21
  • 31
4
votes
2 answers

Distributed Objects, Threading, Objective-C

I have a working server/client app using Distributed Objects in objective-c. What I am struggling with right now is making the app multi-threaded. So that more users can access the server at the same time. Here is main function for the server. This…
n3rfd
  • 275
  • 2
  • 11
4
votes
1 answer

How to find the connection for a particular distributed objects method invocation?

I have a Cocoa client and server application that communicate using distributed objects implemented via NSSocketPorts and NSConnections in the standard way. The server vends a single object to the client applications, of which there may be several.…
OzBandit
  • 1,044
  • 7
  • 14
4
votes
1 answer

Hadoop Map-Reduce OutputFormat for assigning result to in-memory variable (not files)?

(from a Hadoop newbie) I want to avoid files where possible in a toy Hadoop proof-of-concept example. I was able to read data from non-file-based input (thanks to http://codedemigod.com/blog/?p=120) - which generates random numbers. I want to store…
Sridhar Sarnobat
  • 25,183
  • 12
  • 93
  • 106
3
votes
4 answers

Examples of Cocoa/Objective-C and Distributed Objects?

I am learning Cocoa and Objective-C (well, and C) to make a few Mac apps I've had floating around. I need to use Distributed Objects, but am having trouble finding simple, concise examples. Does anybody know of any?
Allyn
  • 20,271
  • 16
  • 57
  • 68
3
votes
1 answer

Hazelcast - Oldest Entries Evicted First

I'm using hazelcast to store data that are important for a small time window (maybe 30 to 50 min, but no more than 60 min). The older the entry, the less important it is, meaning if we could get rid of some entries to avoid an OutOfMemory would be…
Francisco Spaeth
  • 23,493
  • 7
  • 67
  • 106
3
votes
0 answers

How should I implement bi-directional networking between an iPhone application and an Objective-C server-side application?

I'm looking for advice on the best way to implement some kind of bi-directional communication between a "server-side" application, written in Objective-C and running on a mac, and a client application running on an iPhone. To cut a long story…
jkp
  • 78,960
  • 28
  • 103
  • 104
3
votes
3 answers

Cocoa Distributed Objects, Long Polling, launchd and "Not Responding" in Activity Monitor

Scenario: I have a Distributed-objects-based IPC between a mac application and a launchd daemon (written with Foundation classes). Since I had issues before regarding asynchronous messaging (e.g. I have a registerClient: on the server's root object…
jopes
  • 245
  • 2
  • 13
2
votes
1 answer

Crash with Distributed Objects

I am using Distributed objects for communicating between 2 processes as per what is given. here Whenever I try to send many messages in a short span of time , I observe the following crash. It happens only on MAC OS 10.5. It seems to be working…
ping localhost
  • 479
  • 3
  • 22
2
votes
2 answers

How to determine the calling object when using Distributed Objects (DO) in Objective-C?

I am using Distributed Objects (DO) in Objective-C. I have a "server" object that I have vended on the network. Other objects on the network have a proxy to my server object and can thus call methods on the server object. However, can I determine…
Raffi Khatchadourian
  • 3,042
  • 3
  • 31
  • 37
2
votes
1 answer

Missing something for Cocoa/PyObjC Distributed Objects

I'm trying to make a simple example using Distributed Objects with PyObjC. On the server side I have (in Xcode): class VendedObject(NSObject): @objc.signature('@24@0:') def speak(self): return 'woof' class…
telliott99
  • 7,762
  • 4
  • 26
  • 26
2
votes
1 answer

Distributed Database Communication

I am a junior software engineer,I like this site and people in it.So,I want to ask my problems to see your answers and suggestions.Then,please don't mad at me for asking without searching. My problem is about Distributed database communication(MSSQL…
scratmiller
  • 141
  • 3
  • 12
2
votes
1 answer

How Do I Do Distributed Objects on OSX with Objective C?

As of 2016, the Apple docs on this are stale and don't work. For instance, they mention "retain", but in XCode 7.1 the default is to use ARC and it doesn't support "retain". I tried various examples on the web and none worked. How do I code the IPC…
Volomike
  • 23,743
  • 21
  • 113
  • 209
2
votes
1 answer

NSConnection - how to properly do "unvending" of an object?

For Mac OSX, I'm trying to use an NSConnection to proxy access of an object from one application instance to another on the same host. The relevant code is below. I can provide more if needed. Assume when I say "server", I'm referring to the…
selbie
  • 100,020
  • 15
  • 103
  • 173
1
2 3 4