I'm getting a problem when I call -dataWithPDFInsideRect: within a view's -drawRect: method. I'm doing this as part of an attempt to cache the contents as a PDF under some circumstances, but I get a number of assertions/exceptions thrown. This was previously working so I'm not sure what's changed - something in the last Leopard update perhaps (I'm using 10.5.4).

The assertions are:

2008-08-30 14:20:30.410 Ortelius[48682:10b] *** Assertion failure in - [DKDrawingView getRectsBeingDrawn:count:], /SourceCache/AppKit/ AppKit-949.33/AppKit.subproj/NSView.m:7334 2008-08-30 14:20:30.411 Ortelius[48682:10b] Invalid parameter not satisfying: windowRegionBeingDrawn != nil
failed to find start of cross-reference table.
missing or invalid cross-reference trailer.
2008-08-30 14:20:30.412 Ortelius[48682:10b] *** Assertion failure in - [DKDrawingView getRectsBeingDrawn:count:], /SourceCache/AppKit/ AppKit-949.33/AppKit.subproj/NSView.m:7334 2008-08-30 14:20:30.413 Ortelius[48682:10b] unlockFocus called too many time. 2008-08-30 14:20:30.413 Ortelius[48682:10b] *** Assertion failure in - [GCPlacardScrollView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView :], /SourceCache/AppKit/AppKit-949.33/AppKit.subproj/NSView.m:6272 2008-08-30 14:20:30.417 Ortelius[48682:10b] Invalid parameter not satisfying: rectSetBeingDrawn != nil


Any ideas? Is it just not safe to try generating a PDF within drawRect?


tia, Graham
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to