• 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: Open NSDocument from URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: Re: [OT] Cocoa Programming Book
  • Next by Date: Re: Developer tools, but where are they ??
  • Previous by thread: RE: [OT] Cocoa Programming Book
  • Next by thread: Slow Project Builder...
  • Index(es):
    • Date
    • Thread