Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Sheets should not rely on style masks at all #456

appden opened this Issue Feb 8, 2010 · 6 comments


None yet
5 participants

appden commented Feb 8, 2010

Currently it is impossible to design sheets in Interface Builder because of this.


cacaodev commented Feb 14, 2010

The primary issue is that CPWindow -setStyleMask: is not implemented yet.

In IB, a workaround might be to use a NSPanel and check the "Document Modal" option on the upper right (not tested, feedback welcome, thanks).


appden commented Feb 16, 2010

NSPanel doesn't work either. The underlying issue here is that style masks aren't applied in initWithCoder.


walisser commented Nov 23, 2011

you can use IB if you give your window a custom type that subclasses NSWindow, then add this code (or whatever you want the stylemask to be).

- (id)initWithContentRect:(CPRect)rect styleMask:styleMask
    CPLog("%@: %@", [self class], _cmd);

    return [super initWithContentRect:rect styleMask:CPDocModalWindowMask];

cappbot commented May 9, 2012

Milestone: Someday. Labels: #new, AppKit, bug. What's next? A reviewer should examine this issue.


ahankinson commented Feb 14, 2013

Re-classing this as a feature request.


cappbot commented Feb 14, 2013

Milestone: Someday. Labels: #acknowledged, #needs-review, AppKit, feature. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment