objective j - How to center a CPWindow in Cappuccino -
i'm interested in having cpwindow (specifically cppanel) centered , auto-sized might same cpview follows:
[view setautoresizingmask:cpviewminxmargin | cpviewmaxxmargin | cpviewminymargin | cpviewmaxymargin]; [view setcenter:[contentview center]];
however cpwindows seem not have these same methods.
and while we're @ it, how prevent cppanel being dragged around? such thing possible?
thanks.
cpwindow (and cppanel) have center method.
[awindow center];
Comments
Post a Comment