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.

  1. subclass nsview , override isflipped property return yes.
  2. iterate through subviews adjust view's width , height.

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -