Re: Open NSDocument from URL
Re: Open NSDocument from URL
- Subject: Re: Open NSDocument from URL
- From: Brian Webster <email@hidden>
- Date: Tue, 12 Mar 2002 08:55:11 -0600
On Tuesday, March 12, 2002, at 12:04 AM, cocoa-dev-
email@hidden wrote:
Cocoa seems to have many tempting methods (in NSDocument and
NSDocumentController) like 'ReadFromURL' but, AFAICT they don't do
anything interesting, indeed most are unused.
From what I can see, it appears that NSDocument's
readFromURL:ofType: has a default implementation that only
supports file URLs, but if you were to override this method, you
could support http etc. by using NSURL/NSURLHandle.
Currently I've hacked together an NSDocumentController subclass which
(just about) works, but is there an example available by someone
competent (i.e. not me)?
Don't know of any examples, but if you get yours working, feel
free to post it so that it may live for all eternity in the
archives. :)
--
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.