Re: URL types example
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.