[Drawkit] DXF Import Progress / Example
Allan
allandaly at me.com
Fri Jan 23 08:12:06 PST 2009
Putting the DKDrawingView inside of the NSScrollView did the trick (of
course). The zooming works just fine now.
Thank you.
-Allan
On Jan 22, 2009, at 11:12 PM, Graham Cox wrote:
>
> 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
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net
More information about the Drawkit
mailing list