Re: PMSessionEndDocumentNoDialog error code -43
Re: PMSessionEndDocumentNoDialog error code -43
- Subject: Re: PMSessionEndDocumentNoDialog error code -43
- From: Torsten Curdt <email@hidden>
- Date: Fri, 6 Jun 2008 01:58:05 +0200
Bugger! Now also has been reported on the official release 10.5.3 (9D34)
05/06/08 15:43:01 TextEdit[15516] Printing failed because
PMSessionEndDocumentNoDialog() returned -43.
This happens when using a Cocoa Document based application as receiver
for the PDF services (from the print menu)
Could it be related to how I receive the data currently?
- (NSData *)dataRepresentationOfType:(NSString *)aType
{
return nil; // <--- return nil or the data?
}
- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString
*)aType
{
NSLog(@"Received PDF (%d bytes).", [data length]);
pdf = [data copyWithZone:[self zone]];
return YES;
}
Wondering if this should be changed to
- (NSData *)dataOfType:(NSString *)typeName error:(NSError
**)outError
{
return pdf; // <--- return this or nil?
}
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName
error:(NSError **)outError
{
NSLog(@"Received PDF (%d bytes).", [data length]);
pdf = [data copyWithZone:[self zone]];
}
Comments?
cheers
--
Torsten
On May 22, 2008, at 23:26, Torsten Curdt wrote:
Thanks! ...not that I understand why this happens on the new seed -
but thanks for the pointer! Really helpful!
cheers
--
Torsten
On May 22, 2008, at 17:24, Jens Alfke wrote:
On 22 May '08, at 7:15 AM, Torsten Curdt wrote:
Anyone an idea what error code -43 could be?
fnfErr (file not found). I still know that one by heart :)
Look in <MacErrors.h>, the central listing of Carbon error codes.
In general, any time you get an error from any API that's a
negative number (down to -50000 or so), it's probably in there.
—Jens
_______________________________________________
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