On 20/07/2012, at 12:06 AM, Ben Golding wrote: > In my app, I have a custom view which I'm printing. The NSPrintPanel has an > accessory panel attached with a couple of options on it that I'm observing > using the NSPrintPanelAccessorizing method > -keyPathsForValuesAffectingPreview. That works fine. > > When the user changes some of the settings, the size (ie, frame) of the view > changes (columns are added/removed from an NSTableView in my custom view). > When that happens, the preview doesn't get updated correctly: it uses the > frame of the view as it was when the NSPrintOperation was created. That > means that the preview panel doesn't show the correct image of the page to be > rendered. > > Is there a way to notify NSPrintOperation that the frame size has changed on > the view to be printed?
Is there not a property that you can touch when you change the columns, and add that property to what is returned by -keyPathsForValuesAffectingPreview? The property doesn't have to DO anything, it just has to be observed by the preview. As far as I can tell it's the only way to notify the print preview of changes that I've discovered. --Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com