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 > Writing Services

Writing Services
Thread Tools
Senior User
Join Date: Jun 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Jun 19, 2001, 12:12 PM
 
I was wondering a few things:

1) How hard is it to write a service, and waht language must it be in (C, Objective-C, etc...)
2) Would it be possible to write a service that would save the current document as a different type (say as a word/appleworks/excel file)?

I ask, because I would like to see a service that did what MacLinkPlus did (convert the current document into almost any format). Is there any where I could go to pick up information on the Word, Excel, and AppleWorks file types so I can do converting to and from them?

Thanks
     
Mac Elite
Join Date: Sep 2000
Status: Offline
Reply With Quote
Jun 20, 2001, 11:26 PM
 
I think you're looking at quite a daunting task, but I'll give you a short answer. Only Cocoa (ObjC or Java) programs can use services. Services are possible because of Cocoa's OO-nature. Carbon programs can not have services simply because they are inherently procedural and thus not OO. There's plenty of discussion on this topic elsewhere on this board if you look around.

As for saving something as a different format, it'd be easiest to write a program whose sole task is to convert your files. Of course, you'd have to get documentation straight from Apple, Microsoft, etc. on the headers, layout, and basic structure of those formats first. I don't really know how easy or difficult that will be, but you could always try reverse-engineering the files through some tedious trial and error.

It sounds like an ambitious project, biting off more than I'd want to chew, but could prove interesting if you actually pursue it. Let us know if you decide to start working on this.
The server made a boo boo. (403)
     
   
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 12:22 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