Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 6, 2011, 09:02 AM   #1
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Have distributed objects been deprecated?

The Remote Messaging part of the Apple's Objective C Programming Language guide has gone. Has Apple (perhaps by stealth) deprecated Objective-C distributed objects? It doesn't look like it's been implemented in iOS, which is a shame. I thought it would be a great communication system between Mac and iOS. Does anyone know of or have any experience with using distribute objects in classic RPC-style client/server projects? I'm just wondering if I should ignore it even for architectural prototypes and just use a "standard" communication system.
jiminaus is offline   0 Reply With Quote
Old Apr 6, 2011, 12:49 PM   #2
Sydde
macrumors 68000
 
Sydde's Avatar
 
Join Date: Aug 2009
The main class for distributed objects is NSProxy and its concrete subclass NSDistantObject. These are in the Foundation framework. Mac OS X and iOS use the same Foundation framework. There does not appear to be any deprecation note on either of these classes.
__________________
You got to be a spirit. You can't be no ghost.
Sydde is offline   0 Reply With Quote
Old Apr 6, 2011, 04:58 PM   #3
jiminaus
Thread Starter
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
I don't think iOS does share the same Foundation framework as Mac OS X. iOS seems to lack NSConnection and NSDistantObject. It does have NSPort, but only NSMachPort, not NSSocketPort.
jiminaus is offline   0 Reply With Quote
Old Apr 6, 2011, 07:43 PM   #4
Sydde
macrumors 68000
 
Sydde's Avatar
 
Join Date: Aug 2009
Given that multi-tasking is relatively new and that iOS is still primarily focused on a single active application, it would make sense that NSProxy has not been implemented. My guess would be that this is the opposite of "deprecated": expect at some point down the road that these things will be implemented. In the meantime, you will have to work with what lower-levels are available to suit your needs.
__________________
You got to be a spirit. You can't be no ghost.
Sydde is offline   0 Reply With Quote
Old Apr 7, 2011, 01:41 PM   #5
Catfish_Man
macrumors 68030
 
Catfish_Man's Avatar
 
Join Date: Sep 2001
Location: Portland, OR
Send a message via AIM to Catfish_Man
The main issue I've encountered with distributed objects is that they're *too* transparent. The temptation is to treat remote objects as 'just another part of your app', when in fact they really can't be (what happens if the connection is interrupted? or there's suddenly high latency?). The best way to use them is closer to the way you'd use a traditional communication mechanism, with a defined protocol for communicating encapsulated in one remote object representing your communication channel.

Given that design restriction, they start looking a bit less appealing vs other communication mechanisms, although they're still a pretty neat technology.
Catfish_Man is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iOS 7 deprecated code Paulie87 iPhone/iPad Programming 2 Mar 7, 2014 11:44 AM
Resolved: Deprecated v Removed charmofmaking iPhone/iPad Programming 7 Feb 6, 2014 12:47 PM
OpenGL ES: Vertex Buffer Objects and Vertex Array Objects Blakeasd iPhone/iPad Programming 2 Jul 13, 2013 12:24 AM
Deprecated scanner - Sane er2020 Mac Peripherals 3 Apr 25, 2013 11:56 AM
Quartz Display Services replacement for deprecated functions techgentsia Mac Programming 4 Feb 5, 2013 09:13 PM

Forum Jump

All times are GMT -5. The time now is 12:11 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC