Is it wise to create views in Cocoa that have dimensions around 15000 pixels? (of course only small part of this view will be visible at a time in a NSScrollView)
Interface Builder has limit of 10000 pixels in size. Is this an artificial limitation or is there a good reason behind it?
Should I just create huge view and let NSScrollView/Quartz worry about rendering it efficiently (my view is drawn programmatically within area requested in drawRect) or do I risk excessive memory usage and other problems? (e.g. could OS X try to cache whole view’s bitmap in video memory at any time?)
Views don’t have backing stores, unless they are layer-backed. The window is what has the backing store, so the amount of memory used to display the view is limited to the size of the window.
So, the answer is yes. Go ahead and make your views as big as you want.
(Of course, you’ll want to limit the drawing you do in the view to the rect passed in
drawRect:or you’ll be wasting a lot of time doing invisible drawing.)