source: trunk/Cocoa/Pester/Source/NJRFSObjectSelector.h@ 306

Last change on this file since 306 was 43, checked in by Nicholas Riley, 22 years ago

Pester 1.1a1.

English.lproj/InfoPlist.strings: Updated for 1.1a1.

English.lproj/MainMenu.nib: Placeholder for day names in popup menu, fixed up by code (this means you can still edit it from IB though). Added command-shift-T to both in/at cells (required, code removes one or the other as appropriate). Fixed up sizes of fields. Default to today (this will need fixing when we localized the word "today", but it's fine for now...).

English.lproj/Notifier.nib: Remove date formatter because we set a string directly now instead (could set formatter from code, but we don't).

NJRDateFormatter: many workarounds for Cocoa bugs: missing AM/PM, incorrect results with space before AM/PM, etc. Added class methods to do format manipulation and return localized formats which work for output (though not always for input; this class has an internal workaround for the AM/PM problem).

NJRFSObjectSelector: properly handle enabled attribute, store internally and report externally as appropriate. Previously, the button would become enabled if you dropped something on it even if it was supposed to be disabled.

NJRQTMediaPopUpButton: stop sound preview when button disabled.

NJRVoicePopUpButton: stop voice preview when button disabled.

PSAlarm: new method -dateString returns long date string. Maintain local copy of long date, short date and time formats, and locale, using NJRDateFormatter.

PSAlarmNotifierController: update to use -[PSAlarm dateString], -[PSAlarm timeString] for localization instead of using broken formatter.

PSAlarmSetController: update documentation for some more Cocoa bugs I need to file. Set time of day and date formatters with localized date formats from NJRDateFormatter (retain/release issue here?) Localize weekday popup for predefined dates. Localize static date display with NJRDateFormatter. Note a solution (thanks to Douglas Davidson) for figuring out which control is editing. Added command-shift-T key equivalent to toggle in/at. Properly work around bugs witih soundRepetitionCount flashing, except where it's impossible to do anything else.

Read Me.rtfd: Updated for 1.1a1.

VERSION: Updated for 1.1a1.

File size: 653 bytes
Line 
1/* NJRFSObjectSelector */
2
3#import <Cocoa/Cocoa.h>
4#import "BDAlias.h"
5
6@interface NJRFSObjectSelector : NSButton
7{
8 BDAlias *selectedAlias;
9 NSArray *fileTypes;
10 BOOL canChooseDirectories;
11 BOOL canChooseFiles;
12 BOOL dragAccepted;
13 BOOL isEnabled;
14}
15- (IBAction)select:(id)sender;
16- (void)setAlias:(BDAlias *)alias;
17- (BDAlias *)alias;
18- (BOOL)acceptsPath:(NSString *)path;
19- (void)setPath:(NSString *)path; // does not validate
20- (BOOL)canChooseDirectories;
21- (BOOL)canChooseFiles;
22- (void)setCanChooseDirectories:(BOOL)flag;
23- (void)setCanChooseFiles:(BOOL)flag;
24- (NSArray *)fileTypes;
25- (void)setFileTypes:(NSArray *)types;
26
27@end
Note: See TracBrowser for help on using the repository browser.