Files
cappuccino/Tests/Manual/CPWindowResizeStyle/AppController.j
T
Aparajita Fishman 0d674c3496 Finished full window resize support
- The main run loop resets the cursor if it falls outside of all windows during a mouse move.
- Added cursors supported by CSS that are not in NSCursor.
- Code cleanup in CPCursor.
- Cursors now indicate available resize directions if there is a window min/max size.
- Reduced slop to 3, what it is in Cocoa.
- Added a second non-min/max window to the demo.
2012-12-26 14:54:27 -08:00

32 lines
505 B
Plaintext

/*
* AppController.j
* resize
*
* Created by You on December 24, 2012.
* Copyright 2012, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
@outlet CPWindow theWindow;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
[theWindow makeKeyAndOrderFront:nil];
}
- (void)awakeFromCib
{
}
- (@action)resizeStyleDidChange:(id)sender
{
[CPWindow setGlobalResizeStyle:[[sender selectedRadio] tag]];
}
@end