Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching gif in default browser...?



On Jul 25, 2004, at 6:05 PM, Ando Sonenblick wrote:

My app outputs GIFs, which I want to auto launch into the default browser when created.

If I create a url to the outputted GIF file and ask IC to launch it, it opens in Preview, which isn't very conducive to actually seeing the resulting file animate as it just show individual frames.

I'm wondering what is the best/easiest way to force it to launch into the default browser. The only way I see to do it is this:

Get the creator code of the default web broswer with code like:

err = ICGetPref(icInstance, kICHelperHTTP, &icAttr, (Ptr) &targetSpec, &dataSize);
if (err == noErr)
signature = targetSpec.fCreator;

Then use the creator and apple events to find if running, or launch if not, the app with the creator code, then ae the file over to it.

But this seems like a lot of work (and do I really want to be working with creator codes these days?!?!)

How about creating an HTML document in the same location as the image. The HTML would simply contain the <img> tag. Then, create a file:// URL and have IC open it.

___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >launching gif in default browser...? (From: Ando Sonenblick <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.