Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
toggling boarderless panels?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

toggling boarderless panels?



'lo

I've set up a subclass of NSPanel that does the following:

- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
{

result = [super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask
backing:bufferingType
defer:flag];

return result;
}

Now the question is: How can I toggle between boarder-less and
bordered. I can do a [myWin styleMask] to see the styleMask set on it.
Is it possible? And if not, how can I simulate the process of a window
going between borderless and bordered (with titlebar and resize)?

Do I need to set up two windows and basically hide one and show the
other? How can I sync the views between?

Thanks!

-Andrei

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.