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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -