Re: reason for getting NSFileHandle:writeData exception
Re: reason for getting NSFileHandle:writeData exception
- Subject: Re: reason for getting NSFileHandle:writeData exception
- From: Brian Stern <email@hidden>
- Date: Mon, 9 Jul 2007 20:15:14 -0400
On Jul 9, 2007, at 7:19 PM, Chris Heimark wrote:
BUT, it works in the context of the callback to the save panel OK.
I still have the original, more obscure problem, witness this
exception:
>>>>>
2007-07-09 19:04:53.738 DisplayQuantisData[4621] *** -[NSCFString
writeData:]: selector not recognized [self = 0x3e5390]
2007-07-09 19:04:53.754 DisplayQuantisData[4621] Exception raised
during posting of notification. Ignored. exception: *** -
[NSCFString writeData:]: selector not recognized [self = 0x3e5390]
<<<<<
And here is the code that runs in an NSTask callback occurring as a
result of running an external command line program and trying to
absorb the binary results using an NSData object.
>>>>>
[outputFileHandle writeData:rngData];
The exception indicates that the code is trying to send the writeData
message to an NSString. So outputFileHandle is an NSString, not a
file handle. Perhaps you're not retaining the file handle correctly
or you're accessing it from multiple threads incorrectly.
--
Brian Stern
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