Re: Swapping views in print panel

2015-03-23 Thread Graham Cox
On 21 Mar 2015, at 5:43 am, Steve Mills sjmi...@mac.com wrote: The are *not* added as subviews, because that would remove them (the table at least) from doc window hierarchy. Seems a bit smelly. Why not just create additional instances of the view that your print panel can use

Re: Swapping views in print panel

2015-03-23 Thread Steve Mills
On Mar 23, 2015, at 01:58:57, Graham Cox graham@bigpond.com wrote: Thinking about this, it's not that clear why you even need a special view for the print panel. You need a view to generate the print content, but that's not quite the same thing. When you create a print job, you pass it

Re: Swapping views in print panel

2015-03-23 Thread Steve Mills
On Mar 23, 2015, at 01:15:38, Graham Cox graham@bigpond.com wrote: Why not just create additional instances of the view that your print panel can use correctly? In the end they look at the same data model, just display it differently. What you seem to be trying to do is make one view do

Re: Swapping views in print panel

2015-03-23 Thread Graham Cox
On 23 Mar 2015, at 5:47 pm, Steve Mills sjmi...@mac.com wrote: On Mar 23, 2015, at 01:15:38, Graham Cox graham@bigpond.com wrote: Why not just create additional instances of the view that your print panel can use correctly? In the end they look at the same data model, just display

Re: Swapping views in print panel

2015-03-23 Thread Graham Cox
On 24 Mar 2015, at 3:04 am, Steve Mills sjmi...@mac.com wrote: The view doesn't need to be in a view hierarchy. Temp views for printing are common - even Apple apps do this, like TextEdit and Sketch. Yes, that 's what I was saying. But they also can be in the view hierarchy - they

Re: Swapping views in print panel

2015-03-22 Thread Steve Mills
On Mar 20, 2015, at 13:43:57, Steve Mills sjmi...@mac.com wrote: My documents have 2 main view modes, thumbnails and details, which use subclasses of IKImageBrowserView and NSTableView respectively. For printing, I need to create a new print-only thumbnail view because IKImageBrowserView

Re: Swapping views in print panel

2015-03-22 Thread Kyle Sluder
On Sun, Mar 22, 2015, at 11:17 PM, Steve Mills wrote: No bites? Well, here's the answer you don't want to hear: if your app is well-factored according to MVC principles, it should be straightforward (if non-trivial) to create a second instance of your view to use in the print panel rather than

Swapping views in print panel

2015-03-20 Thread Steve Mills
My documents have 2 main view modes, thumbnails and details, which use subclasses of IKImageBrowserView and NSTableView respectively. For printing, I need to create a new print-only thumbnail view because IKImageBrowserView wasn't written in a way that can print, plus I need to rejigger its