| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
With this info, I was able to get my NSInputStream subclass to work by providing the following stub methods:
- (void) _scheduleInCFRunLoop: (NSRunLoop *) inRunLoop forMode: (id) inMode
{
// Safe to ignore this?
}
- (void) _setCFClientFlags: (CFOptionFlags)inFlags callback: (CFReadStreamClientCallBack) inCallback context: (CFStreamClientContext) inContext { // Safe to ignore this? }
Of course, I don't know if it is actually safe to ignore these methods. Is this something you can comment on? Will this break in some weird way because I'm not providing an actual implementation to these methods?
Thus, your options are:
1. safe but inefficient -- Create a temporary file and using a file stream.
Well, at least it's memory efficient, right?
Right.
Nor could I find any bugs requesting a public API for implementing a custom CFStream.
Is a custom CFStream needed? Also in my investigation yesterday, I looked at how WebKit handles multipart forms. I found FormDataStreamCFNet.cpp:
<http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/platform/network/cf/FormDataStreamCFNet.cpp >
This seems to provide a read stream with custom callbacks. Is this using quasi-private APIs? Or could could I try this technique, using the callbacks to get back into Obj-C land?
OTOH, we do have a bug requesting that we make NSStream subclasses play nice with CF (<rdar://problem/3222783>).
Should I create a bug that specifically mentions NSMutableURLRequest and NSInputStream subclasses not playing nice?
- REW
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/email@hidden
| References: | |
| >Multipart POST using NSInputStream subclass (From: Dave Dribin <email@hidden>) | |
| >Re: Multipart POST using NSInputStream subclass (From: Quinn <email@hidden>) | |
| >Re: Multipart POST using NSInputStream subclass (From: Dave Dribin <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.