[Drawkit] DXF Import Progress / Example

Graham Cox graham.cox at bigpond.com
Thu Jan 22 23:12:19 PST 2009


On 23 Jan 2009, at 4:38 pm, Allan wrote:

> Does that make sense? Is the DK Simple Demo application not set up  
> to be able to use these zoom commands?
>


Ah, I hadn't quite grasped that you were using the simple demo. Yes,  
the zoom commands assume the existence of an NSScrollView enclosing  
the view. If you think about it it makes sense since for zooming to be  
effective you need a scroller to be able to then position the zoomed  
view where you need it.

The simple demo sizes the drawing to suit the view for the sake of  
being really simple. Normally you wouldn't do that, but have a fixed  
drawing size within a scrollable view.

You should be able to simply use Interface Builder to embed the main  
view in a scroller - you might also have to comment out the code that  
responds to the view size changing and sizes the drawing to suit. If  
you need more help, feel free to keep asking.

--Graham


More information about the Drawkit mailing list