Skip to content

Commit 83dd3d4

Browse files
committed
Move ivar declarations to their class extensions
This is really just to make the code style more similar to the TextMate source.
1 parent e1ea1b3 commit 83dd3d4

File tree

8 files changed

+33
-34
lines changed

8 files changed

+33
-34
lines changed

CLIProxy.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@
99
#import "OptionParser.h"
1010

1111
@interface CLIProxy : NSObject
12-
{
13-
NSArray* _arguments;
14-
NSDictionary* _parameters;
15-
16-
option_t const* optionTemplate;
17-
size_t optionCount;
18-
NSDictionary* parsedOptions;
19-
}
2012
@property (nonatomic, readonly) NSFileHandle* inputHandle;
2113
@property (nonatomic, readonly) NSFileHandle* outputHandle;
2214
@property (nonatomic, readonly) NSFileHandle* errorHandle;

CLIProxy.mm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
#import "TMDCommand.h"
1010

1111
@interface CLIProxy ()
12+
{
13+
NSArray* _arguments;
14+
NSDictionary* _parameters;
15+
16+
option_t const* optionTemplate;
17+
size_t optionCount;
18+
NSDictionary* parsedOptions;
19+
}
1220
@property (nonatomic, readonly) NSArray* arguments;
1321
@end
1422

Commands/nib/TMDNibController.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
//
55

66
@interface TMDNibController : NSObject <NSWindowDelegate>
7-
{
8-
NSMutableArray* clientFileHandles;
9-
10-
NSWindow* window;
11-
}
127
- (id)initWithNibPath:(NSString*)aPath;
138
- (void)showWindowAndCenter:(BOOL)shouldCenter;
149

Commands/nib/TMDNibController.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ - (BOOL)lionInstantiateWithOwner:(id)owner topLevelObjects:(NSArray**)topLevelOb
3737
@end
3838

3939
@interface TMDNibController ()
40+
{
41+
NSMutableArray* clientFileHandles;
42+
NSWindow* window;
43+
}
4044
@property (nonatomic) NSArray* topLevelObjects;
4145
@property (nonatomic) NSMutableDictionary* parameters;
4246
@end

Commands/popup/TMDIncrementalPopUpMenu.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,6 @@
1010
static NSUInteger const MAX_ROWS = 15;
1111

1212
@interface TMDIncrementalPopUpMenu : NSWindow<NSTableViewDataSource>
13-
{
14-
NSFileHandle* outputHandle;
15-
NSArray* suggestions;
16-
NSMutableString* mutablePrefix;
17-
NSString* staticPrefix;
18-
NSArray* filtered;
19-
NSTableView* theTableView;
20-
NSPoint caretPos;
21-
BOOL isAbove;
22-
BOOL closeMe;
23-
BOOL caseSensitive;
24-
25-
NSMutableCharacterSet* textualInputCharacters;
26-
}
2713
- (id)initWithItems:(NSArray*)someSuggestions alreadyTyped:(NSString*)aUserString staticPrefix:(NSString*)aStaticPrefix additionalWordCharacters:(NSString*)someAdditionalWordCharacters caseSensitive:(BOOL)isCaseSensitive writeChoiceToFileDescriptor:(NSFileHandle*)aFileDescriptor;
2814
- (void)setCaretPos:(NSPoint)aPos;
2915
@end

Commands/popup/TMDIncrementalPopUpMenu.mm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ - (BOOL)TMDcanHandleEvent:(NSEvent*)anEvent
4848
@end
4949

5050
@interface TMDIncrementalPopUpMenu ()
51+
{
52+
NSFileHandle* outputHandle;
53+
NSArray* suggestions;
54+
NSMutableString* mutablePrefix;
55+
NSString* staticPrefix;
56+
NSArray* filtered;
57+
NSTableView* theTableView;
58+
NSPoint caretPos;
59+
BOOL isAbove;
60+
BOOL closeMe;
61+
BOOL caseSensitive;
62+
63+
NSMutableCharacterSet* textualInputCharacters;
64+
}
5165
- (NSRect)rectOfMainScreen;
5266
- (NSString*)filterString;
5367
- (void)setupInterface;

Commands/tooltip/TMDHTMLTips.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,5 @@
88
#import <WebKit/WebKit.h>
99

1010
@interface TMDHTMLTip : NSWindow
11-
{
12-
WebView* webView;
13-
WebPreferences* webPreferences;
14-
15-
NSDate* didOpenAtDate; // ignore mouse moves for the next second
16-
NSPoint mousePositionWhenOpened;
17-
}
1811
+ (void)showWithContent:(NSString*)content atLocation:(NSPoint)point transparent:(BOOL)transparent;
1912
@end

Commands/tooltip/TMDHTMLTips.mm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
NSString* const TMDTooltipPreferencesIdentifier = @"TM Tooltip";
1616

1717
@interface TMDHTMLTip ()
18+
{
19+
WebView* webView;
20+
WebPreferences* webPreferences;
21+
22+
NSDate* didOpenAtDate; // ignore mouse moves for the next second
23+
NSPoint mousePositionWhenOpened;
24+
}
1825
- (void)setContent:(NSString*)content transparent:(BOOL)transparent;
1926
- (void)runUntilUserActivity:(id)sender;
2027
@end

0 commit comments

Comments
 (0)