Bill Bumgarner wrote:
On Apr 15, 2009, at 8:12 AM, BJ Homer wrote:
Seems to be concrete to me. Nevertheless, calling it on super does throw an
exception; you might just try calling [super init] and see what happens.

// NSOutputStream is an abstract class representing the base functionality of a write stream.
// Subclassers are required to implement these methods.
@interface NSOutputStream : NSStream
- (NSInteger)write:(const uint8_t *)buffer maxLength:(NSUInteger)len;
// writes the bytes from the specified buffer to the stream up to len bytes. Returns the number of bytes actually written.

- (BOOL)hasSpaceAvailable;
// returns YES if the stream can be written to or if it is impossible to tell without actually doing the write.
@end

I think I am just going to implement those methods, now. I've been playing with the implementation that I sent earlier with a NSOutputStream ivar and it looks like I would have to implement a good deal of extra code for delegate and propertyForKey methods.

Thanks, again, everyone.



b.bum
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jason%40sigio.com

This email sent to ja...@sigio.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to