Re: Zooming a view, that is contained in an NSScrollView

2011-10-19 Thread Nick
Thanks a lot Graham and John! That did it :-) 2011/10/18 Graham Cox : > > On 18/10/2011, at 5:59 AM, John Pannell wrote: > >> Hi Nick- >> >> There is some composition of views needed to make this work.  Within >> GCDrawKit, find the GCZoomView class… make your custom view a subview of >> this (

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Graham Cox
On 18/10/2011, at 5:59 AM, John Pannell wrote: > Hi Nick- > > There is some composition of views needed to make this work. Within > GCDrawKit, find the GCZoomView class… make your custom view a subview of this > (to adopt all of its zoomy goodness). Then, make your custom drawing view > the

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread John Pannell
Hi Nick- There is some composition of views needed to make this work. Within GCDrawKit, find the GCZoomView class… make your custom view a subview of this (to adopt all of its zoomy goodness). Then, make your custom drawing view the documentView of an NSScrollView. You'll now need to wire up

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Nick
Hi Fritz, thank you for the link. My application actually is very simple, and the drawing part is implemented already "by hand". So I was just wondering whether or not (and how) it is possible to implement this zooming using NSScrollView 2011/10/17 Fritz Anderson : > On 17 Oct 2011, at 11:47 AM, N

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Fritz Anderson
On 17 Oct 2011, at 11:47 AM, Nick wrote: > I am trying to implement a simple vector graphics editor. > I have some thoughts on how to implement the elements positioning, > storage and select-ability. GCDrawKit may help you make (a lot of) progress. — F

Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Nick
Hello! I am trying to implement a simple vector graphics editor. I have some thoughts on how to implement the elements positioning, storage and select-ability. The problem is i don't know how would it be right to implement Zooming (similar to how graphics editors do it - by allowing the user to se