Re: New Tiger NSDocument API's
Re: New Tiger NSDocument API's
- Subject: Re: New Tiger NSDocument API's
- From: j o a r <email@hidden>
- Date: Sun, 12 Jun 2005 22:18:31 -0700
On 12 jun 2005, at 21.53, Philip Ershler wrote:
I'm trying to get up to speed with the Tiger NSDocument API's.
I'm just trying to open a stream to my own type of file. Here's the
code I'm trying to use. I am (as the template comments in
MyDocument suggests) overriding readFromFileWrapper:(NSFileWrapper
*)fileWrapper ofType:(NSString *)typeName error:(NSError **)
outError. What I can't figure out is how to get the CFURLRef to
create the CFReadStream. If I set a breakpoint in this method, I
can see the appropriate URL pointing to the file that I chose in
the Open Dialog with the debugger. If there is some sample code or
documentation you can point me to, that would be great. Otherwise a
hint would sure be appreciated.
May I first of all ask what you're trying to do? Could you describe
the type of files you're working with, and anything else about you're
app that might be important for the reading / writing of documents?
Also, why are you using functionality from CF? Do you have a special
reason to not use the Cocoa ("NS") API? Is the file too large to be
read all at once, and in that case, why not use NSFileHandle?
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden