Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-dataWithPDFInsideRect: unsafe within -drawRect:?



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@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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.