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

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -