Changeset 4707

Show
Ignore:
Timestamp:
04/23/07 21:36:46 (2 years ago)
Author:
morris
Message:

Bump some junk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredAdditions/trunk/NSMenuItem-WIAdditions.h

    r4438 r4707  
    3131+ (NSMenuItem *)itemWithTitle:(NSString *)title; 
    3232+ (NSMenuItem *)itemWithTitle:(NSString *)title tag:(NSInteger)tag; 
     33+ (NSMenuItem *)itemWithTitle:(NSString *)title action:(SEL)action; 
     34+ (NSMenuItem *)itemWithTitle:(NSString *)title action:(SEL)action keyEquivalent:(NSString *)keyEquivalent; 
    3335 
    3436@end 
  • WiredAdditions/trunk/NSMenuItem-WIAdditions.m

    r4438 r4707  
    3232 
    3333+ (NSMenuItem *)itemWithTitle:(NSString *)title { 
    34         return [[[self alloc] initWithTitle:title action:NULL keyEquivalent:@""] autorelease]; 
     34        return [self itemWithTitle:title action:NULL keyEquivalent:@""]; 
    3535} 
    3636 
     
    4646} 
    4747 
     48 
     49 
     50+ (NSMenuItem *)itemWithTitle:(NSString *)title action:(SEL)action { 
     51        return [self itemWithTitle:title action:action keyEquivalent:@""]; 
     52} 
     53 
     54 
     55 
     56+ (NSMenuItem *)itemWithTitle:(NSString *)title action:(SEL)action keyEquivalent:(NSString *)keyEquivalent { 
     57        return [[[self alloc] initWithTitle:title action:action keyEquivalent:keyEquivalent] autorelease]; 
     58} 
     59 
    4860@end 
  • WiredAdditions/trunk/NSWindow-WIAdditions.h

    r4438 r4707  
    3232 
    3333- (BOOL)isOnScreen; 
     34- (float)toolbarHeight; 
    3435 
    3536- (void)setPropertiesFromDictionary:(NSDictionary *)dictionary; 
  • WiredAdditions/trunk/NSWindow-WIAdditions.m

    r4438 r4707  
    4343- (BOOL)isOnScreen { 
    4444        return ([self isVisible] || [self isMiniaturized]); 
     45} 
     46 
     47 
     48 
     49- (float)toolbarHeight { 
     50        NSToolbar       *toolbar; 
     51         
     52        toolbar = [self toolbar]; 
     53         
     54        if(!toolbar) 
     55                return 0.0; 
     56         
     57        return [self contentRectForFrameRect:[self frame]].size.height - [[self contentView] frame].size.height; 
    4558} 
    4659 
  • WiredAdditions/trunk/WINotification.h

    r3416 r4707  
    22 
    33/* 
    4  *  Copyright (c) 2003-2006 Axel Andersson 
     4 *  Copyright (c) 2003-2007 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • WiredAdditions/trunk/WINotification.m

    r3416 r4707  
    22 
    33/* 
    4  *  Copyright (c) 2003-2006 Axel Andersson 
     4 *  Copyright (c) 2003-2007 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • WiredAdditions/trunk/WIWindowController.m

    r4482 r4707  
    2727 */ 
    2828 
     29#import <WiredAdditions/NSNotificationCenter-WIAdditions.h> 
    2930#import <WiredAdditions/WIWindowController.h> 
    3031 
     
    5758                addObserver:self 
    5859                   selector:@selector(_WI_applicationWillTerminate:) 
    59                            name:NSApplicationWillTerminateNotification 
    60                          object:NULL]; 
     60                           name:NSApplicationWillTerminateNotification]; 
    6161} 
    6262 
     
    153153                } 
    154154                 
     155                 
     156                 
    155157                key = [NSSWF:@"WIWindowController %@ Frame", _WI_windowFrameAutosaveName]; 
    156158                value = NSStringFromRect(rect);