mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-03 05:39:45 +00:00
- 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.
32 lines
505 B
Plaintext
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
|