• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to create webloc file in programming?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to create webloc file in programming?


  • Subject: Re: how to create webloc file in programming?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 17 Jan 2005 13:03:14 +0100

At 3:44 Uhr -0500 17.01.2005, The Karl Adam wrote:
While this may solve the problem of moving a .webloc, I believe the
original question was how to create a .webloc file and he made an
anecdotal reference to it's not being "normal" by this peculiar
behavior with cp.

P.S. I too am interested in ways to do this.

He pretty much already had it all in his posting: the data is in the resource fork. It's been a while since I messed with it, but a quick peek using ResEdit under Classic should give you the needed info.


IIRC, it was just a text resource with a type something like 'URL ', which contains the raw text of the URL. To create such a resource, use Carbon resource manager calls or Nathan's NDResourceFork class.

If you just want a double-clickable URL file, you could also use a .url file instead of a .webloc file. .url comes from Internet explorer and is data fork only.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >how to create webloc file in programming? (From: "Tim.xu" <email@hidden>)
 >Re: how to create webloc file in programming? (From: Andrew Farmer <email@hidden>)
 >Re: how to create webloc file in programming? (From: Charles Srstka <email@hidden>)
 >Re: how to create webloc file in programming? (From: The Karl Adam <email@hidden>)

  • Prev by Date: Redrawing table cells
  • Next by Date: Re: 1.45 x 1 = 1.450000047683716 ? :: CurrencyConverter
  • Previous by thread: Re: how to create webloc file in programming?
  • Next by thread: Re: how to create webloc file in programming?
  • Index(es):
    • Date
    • Thread