Changeset 3931

Show
Ignore:
Timestamp:
03/19/06 16:21:11 (2 years ago)
Author:
morris
Message:

Use WIApplication to get a standard release notes window

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Tuna/trunk/English.lproj/InfoPlist.strings

    r2913 r3931  
    22CFBundleName = "Tuna"; 
    33CFBundleShortVersionString = "1.0.1"; 
    4 CFBundleGetInfoString = "1.0.1, Copyright © 2005 Zanka Software."; 
    5 NSHumanReadableCopyright = "Copyright © 2005 Zanka Software."; 
     4CFBundleGetInfoString = "Tuna 1.0.1, Copyright © 2005-2006 Zanka Software."; 
     5NSHumanReadableCopyright = "Copyright © 2005-2006 Zanka Software."; 
  • Tuna/trunk/English.lproj/MainMenu.nib/classes.nib

    r3409 r3931  
    1515        },  
    1616        { 
    17             ACTIONS = {manual = id; newDocument = id; releaseNotes = id; tutorial = id; };  
     17            ACTIONS = {manual = id; newDocument = id; };  
    1818            CLASS = TNMainController;  
    1919            LANGUAGE = ObjC;  
     20            SUPERCLASS = WIObject;  
     21        },  
     22        { 
     23            ACTIONS = {orderFrontReleaseNotesWindow = id; };  
     24            CLASS = WIApplication;  
     25            LANGUAGE = ObjC;  
    2026            OUTLETS = {"_releaseNotesTextView" = NSTextView; "_releaseNotesWindow" = NSWindow; };  
    21             SUPERCLASS = WIObject;  
     27            SUPERCLASS = NSApplication;  
    2228        },  
    2329        {CLASS = WIObject; LANGUAGE = ObjC; SUPERCLASS = NSObject; } 
  • Tuna/trunk/English.lproj/MainMenu.nib/info.nib

    r3409 r3931  
    88        <dict> 
    99                <key>29</key> 
    10                 <string>395 701 359 44 0 0 1280 1002 </string> 
     10                <string>721 756 359 44 0 0 1280 1002 </string> 
    1111        </dict> 
    1212        <key>IBFramework Version</key> 
     
    1414        <key>IBOpenObjects</key> 
    1515        <array> 
    16                 <integer>252</integer> 
    1716                <integer>29</integer> 
    1817        </array> 
    1918        <key>IBSystem Version</key> 
    20         <string>8F46</string> 
     19        <string>8H14</string> 
    2120</dict> 
    2221</plist> 
  • Tuna/trunk/Info.plist

    r2814 r3931  
    3939        <string>MainMenu</string> 
    4040        <key>NSPrincipalClass</key> 
    41         <string>NSApplication</string> 
     41        <string>WIApplication</string> 
    4242</dict> 
    4343</plist> 
  • Tuna/trunk/TNDocument.h

    r2814 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNDocument.m

    r2814 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNMainController.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    2727 */ 
    2828 
    29 @interface TNMainController : WIObject { 
    30         IBOutlet NSWindow                                       *_releaseNotesWindow; 
    31         IBOutlet NSTextView                                     *_releaseNotesTextView; 
    32 
    33  
     29@interface TNMainController : WIObject 
    3430 
    3531- (IBAction)newDocument:(id)sender; 
    3632 
    37 - (IBAction)releaseNotes:(id)sender; 
    3833- (IBAction)manual:(id)sender; 
    3934 
  • Tuna/trunk/TNMainController.m

    r2839 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    4242 
    4343 
    44 - (IBAction)releaseNotes:(id)sender { 
    45         NSAttributedString      *string; 
    46         NSString                        *path; 
    47  
    48         if([[_releaseNotesTextView string] length] == 0) { 
    49                 path = [[self bundle] pathForResource:@"ReleaseNotes" ofType:@"rtf"]; 
    50                 string = [[NSAttributedString alloc] initWithRTF:[NSData dataWithContentsOfFile:path] 
    51                                                                           documentAttributes:NULL]; 
    52                  
    53                 [_releaseNotesTextView setAttributedString:string]; 
    54                 [string release]; 
    55         } 
    56          
    57         [_releaseNotesWindow makeKeyAndOrderFront:self]; 
    58 } 
    59  
    60  
    61  
    6244- (IBAction)manual:(id)sender { 
    6345        [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.zankasoftware.com/tuna/manual"]]; 
  • Tuna/trunk/TNNode.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNNode.m

    r3375 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNParser.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNParser.m

    r3375 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNProfilerController.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNProfilerController.m

    r3375 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNSessionController.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNSessionController.m

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNSettings.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNSettings.m

    r2814 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNSub.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNSub.m

    r2814 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNTree.h

    r3401 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • Tuna/trunk/TNTree.m

    r2814 r3931  
    22 
    33/* 
    4  *  Copyright (c) 2005 Axel Andersson 
     4 *  Copyright (c) 2005-2006 Axel Andersson 
    55 *  All rights reserved. 
    66 *