Gargo
Gargo

Reputation: 1374

Programmatically resizing and Scrolling NSView after application launch

I want to create a simple application which performs some calculations and then draws some images on view. I use NSBezierPath. Then I must resize the view and allow people scroll the finished picture. But i don't know how.If I also try to draw an image on an invisible part of canvas then it becomes invisible or isn't drawn (I couldn't know the future canvas size).

Upvotes: 1

Views: 957

Answers (1)

Mike Hay
Mike Hay

Reputation: 2856

Check out the Apple sample code called BezierPathLab. I think that will get you started. There's lot of other sample code for Quartz 2D drawing too.

Being able to scroll and resize the view should be as simple as putting the view that you will be using to draw inside an NSScrollView.

Upvotes: 1

Related Questions