objective c - Change NSView coordinate -
i tried add objects nsview(which create programmatically) set nsview documentview nsscrollview. have 2 problem :
1-nsview coordinate cocoa kind(left bottom 0,0), want swing kind(left top 0,0).for make must override property - (bool)isflipped return true(default return false).i have no idea how that.
2-for create nsview told height 5000;i want after add subview remove free space.how it's possible?thanks sorry bad english.
- subclass
nsview, overrideisflippedproperty return yes. - iterate through subviews adjust view's width , height.
Comments
Post a Comment