• 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: Charles Srstka <email@hidden>
  • Date: Mon, 17 Jan 2005 02:36:15 -0600

On Jan 16, 2005, at 10:11 PM, Andrew Farmer wrote:

On 16 Jan 2005, at 20:02, Tim.xu wrote:
I don't know how to create webloc file in programming. I find webloc file is different with other file type. when I use command "cp google.webloc ./test/google.webloc", google.webloc is a webloc file which I create it by hand. But it will destroy the file(./test/google.webloc). I want to know how to cp the resource in Mac machine, or how to create webloc file directly in Mac programming Interface. Thank you.

Try CpMac (in /Developer/Tools), or copy the resource fork (google.webloc/rsrc) separately.

No need to use CpMac (thereby requiring the user to have the Developer Tools installed) or to resort to Carbon.


-[NSFileManager copyPath:toPath:handler:] copies the resource fork just fine.

Charles

_______________________________________________
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


  • Follow-Ups:
    • Re: how to create webloc file in programming?
      • From: The Karl Adam <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>)

  • Prev by Date: Re: NSString to ascii code
  • 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