One of those days

2shortplanks on 2004-08-27T15:36:41

It's one of those days. Even the fun little hack I was writing in CamelBones hates me this afternoon.

Documentation (From O'Reilly's Cocoa In A Nutshell):

  // Read all available data and converting it to a string
  NSData *data = [fh availableData];
  NSString *str = [NSString stringWithData:data];
My code (in Perl:)

   my $data = $outhandle->availableData;
   my $string = NSString->stringWithData($data);


The debugger:

  Exception raised during posting of notification.  Ignored.  exception:  *** -[NSConcreteFileHandle availableData]: Invalid argument
Bah.

Everything hates me.