• 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: unrecognized selector sent to instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unrecognized selector sent to instance


  • Subject: Re: unrecognized selector sent to instance
  • From: Jason Stephenson <email@hidden>
  • Date: Wed, 15 Apr 2009 11:45:27 -0400

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 (email@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >unrecognized selector sent to instance (From: Jason Stephenson <email@hidden>)
 >Re: unrecognized selector sent to instance (From: Bill Bumgarner <email@hidden>)
 >Re: unrecognized selector sent to instance (From: BJ Homer <email@hidden>)
 >Re: unrecognized selector sent to instance (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: unrecognized selector sent to instance
  • Next by Date: Re: C: treated as a path component
  • Previous by thread: Re: unrecognized selector sent to instance
  • Next by thread: Re: unrecognized selector sent to instance
  • Index(es):
    • Date
    • Thread