Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Distributed Objects to pass NSImages between apps on the same machine?

Distributed Objects to pass NSImages between apps on the same machine?
Thread Tools
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status: Offline
Reply With Quote
Apr 26, 2003, 01:33 AM
 
I'm trying to generate hundreds of small NSImages in one app and pass them to another app. The reason for this is that Quicktime is not thread-safe, which apparently means that you can't have two movies open at the same time (or at least not two copies of the same movie). And I need to have an NSMovieView open and also a bunch of thumbnails of that movie in a timeline view. So I thought, have a helper app create the images and pass them across

So anyway, I can communicate strings across fine, but passing an NSImage seems to crash the sending app (SIGNAL 11). So is there a way to send images from one app to another, and if so, how do I do it?

thanks
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Apr 27, 2003, 09:52 PM
 
I'd archive it to NSData first. Just use the NSArchiver and NSUnarchiver class methods and pass them along.

Hope this helps,
Matt Fahrenbacher
     
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status: Offline
Reply With Quote
Apr 28, 2003, 11:32 PM
 
it works! thank you very much sir
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:27 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2