Ignore:
Timestamp:
11/18/02 08:57:41 (20 years ago)
Author:
Nicholas Riley
Message:

Alarms.nib: Removed horizontal scroll bar. Turned on grid. Set delegate to NJRTableDelegate instead of PSAlarmSetController.

NJRTableDelegate: In general, made functional (was previously unused). Fixed MyCompanyName. Changed ORDER_BY_CONTEXT to use key-value coding instead of assuming data consists of a dictionary of dictionaries. Added sorting support (reorderedData, replaces oData) with autosave support for sort context. Added _positionTypeSelectDisplay, which adjusts position and justification of type select display control based on the current sort column. Added support for reverse sorting in type select string. Use table data source instead of sorted data so text matches as displayed (this will break with non-text cells...).

NJRTableView: Adapted from iTableView (Jaguar table alternate table background color), TableTester (most everything else) and NJROutlineView (keyDown, moveToBeginning/EndOfDocument). Support for type selection, delete shortcut for row deletion, and iTunes-alike background colors and frame.

NSCharacterSet-NJRExtensions: Moved _typeSelectSet from NJROutlineView as it's now shared with NJRTableView. Still need to factor NJROutlineView as embedded in HostLauncher some day.

PSAlarm: Reorganized, renamed and categorized methods. Added time accessor for the benefit of sorting. Renamed compare: to compareDate: for clarity. Added compareMessage:, though it's currently unused. Renamed cancel to cancelTimer for clarity.

PSAlarmSetController: More fun with initial first responder on window show/hide; still need to work around bug properly (subclass NSComboBox?) and fix it for real. As is, works for OS X 10.1.

PSAlarms: Added alarms accessor, returning alarm array. Fixed memory leak on successful alarm removal (oops). Added removeAlarms:, needed with sorted alarm list.

PSAlarmsController: Set window resize increment. Changes to table delegate methods to use reordered alarm list. Register for NSTableViewSelectionDidChangeNotification now we're no longer the table view delegate. Fixed autoselection in alarmsChanged by using data reordering support in NJRTableView. Implement NJRTableViewDataSource to permit deletion from table view.

Pester.pbproj: Added new files.

Read Me.rtfd: Added TableTester/iTableView acknowledgements. Updated release notes.

Location:
trunk/Cocoa/Pester/Source/English.lproj/Alarms.nib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/English.lproj/Alarms.nib/classes.nib

    r26 r51  
    33        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
    44        {CLASS = NJRScrollView; LANGUAGE = ObjC; SUPERCLASS = NSScrollView; },
     5        {
     6            CLASS = NJRTableDelegate;
     7            LANGUAGE = ObjC;
     8            OUTLETS = {tableView = NSTableView; };
     9            SUPERCLASS = NSObject;
     10        },
     11        {
     12            CLASS = NJRTableView;
     13            LANGUAGE = ObjC;
     14            OUTLETS = {typeSelectDisplay = id; };
     15            SUPERCLASS = NSTableView;
     16        },
     17        {CLASS = NSObject; LANGUAGE = ObjC; },
    518        {
    619            ACTIONS = {remove = id; };
  • trunk/Cocoa/Pester/Source/English.lproj/Alarms.nib/info.nib

    r28 r51  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    3 <plist version="1.0">
     2<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
     3<plist version="0.9">
    44<dict>
    55        <key>IBDocumentLocation</key>
    6         <string>579 27 356 240 0 0 1600 1178 </string>
     6        <string>322 50 356 240 0 0 1280 832 </string>
    77        <key>IBFramework Version</key>
    8         <string>286.0</string>
     8        <string>263.2</string>
    99        <key>IBOpenObjects</key>
    1010        <array>
     
    1212        </array>
    1313        <key>IBSystem Version</key>
    14         <string>6D52</string>
     14        <string>5S66</string>
    1515</dict>
    1616</plist>
Note: See TracChangeset for help on using the changeset viewer.