• 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: reason for getting NSFileHandle:writeData exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: reason for getting NSFileHandle:writeData exception
      • From: Chris Heimark <email@hidden>
References: 
 >reason for getting NSFileHandle:writeData exception (From: Chris Heimark <email@hidden>)
 >Re: reason for getting NSFileHandle:writeData exception (From: Brian Stern <email@hidden>)
 >Re: reason for getting NSFileHandle:writeData exception (From: Chris Heimark <email@hidden>)

  • Prev by Date: Re: Anyone recognise this crash in loadNib?
  • Next by Date: Focus Rings
  • Previous by thread: Re: reason for getting NSFileHandle:writeData exception
  • Next by thread: Re: reason for getting NSFileHandle:writeData exception
  • Index(es):
    • Date
    • Thread