• 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: URL types example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL types example


  • Subject: Re: URL types example
  • From: Brian Webster <email@hidden>
  • Date: Thu, 7 Feb 2002 17:52:24 -0600

On Thursday, February 7, 2002, at 05:27 PM, cocoa-dev-
email@hidden wrote:

Looking for an example show how to handle URL types. I understand how
to handle file types and handle them in dataRepresentationOfType. Is
this where to handle them or somewhere else. Is there a 'open' panel
for URL types? Why not the normal open panel?

I don't believe there is a standard open panel supplied for opening URLs, so you'll have to provide your own for that (a sheet with a text field, basically). To read data from the URL, you should override readFromURL:ofType:. The default implementation only handles file URLs, so if you want to read data from other types of URLs, use NSURL's resourceDataUsingCache: (or loadResourceDataNotifyingClient:usingCache: if you want to load in the background).

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Offscreen drawing again ...
  • Next by Date: Re: newbie question on 'Cocoa Programming for Mac OS X'
  • Previous by thread: URL types example
  • Next by thread: left-shift vs. right-shift
  • Index(es):
    • Date
    • Thread