Fwd: NSDocument and non-file URLs
Fwd: NSDocument and non-file URLs
- Subject: Fwd: NSDocument and non-file URLs
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 19 Feb 2003 13:49:23 -0800
Since I didn't get any responses on macosx-dev, maybe someone over here
would know...
Begin forwarded message:
From: Nick Zitzmann <email@hidden>
Date: Tue Feb 18, 2003 11:27:54 PM US/Pacific
To: email@hidden
Subject: NSDocument and non-file URLs
I've got a document based application that is a URL client. What I'd
like to add to it is, given a non-file: URL, any other object in the
application can open up a new document and pass it a URL to handle.
So far, I've got most of the infrastructure there, but one thing's
confusing me: To make the new document, I know I need to use
NSDocumentController, but NSDocumentController's methods that deal
with URLs (makeDocumentWithContentsOfURL:,
openDocumentWithContentsOfURL:) appear to assume that these URLs are
file URLs from what I understand of the class documentation. My
NSDocument subclass does override initWithContentsOfURL:, but it never
gets called.
So what do I have to do here? Am I correct in guessing that I'm going
to have to subclass NSDocumentController and override its URL handling
methods, or is there another, easier way of doing this? Any advice
would be appreciated...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
if (message.signature==FUNNY) steal(message.signature); else
message=message->next;
_______________________________________________
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.