Changeset 4992
- Timestamp:
- 10/24/07 01:33:07 (9 months ago)
- Files:
-
- Footagehead/trunk/FHInspectorController.m (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Footagehead/trunk/FHInspectorController.m
r4968 r4992 39 39 - (void)_setValue:(NSString *)value forKey:(NSString *)key; 40 40 - (void)_relayoutFields; 41 - (NSTextField *)_textField FromArchetype:(NSTextField *)archetypeTextField;41 - (NSTextField *)_textFieldLikeTextField:(NSTextField *)archetypeTextField withStringValue:(NSString *)string; 42 42 43 43 @end … … 135 135 CGFloat verticalOffset, height; 136 136 137 verticalOffset = 18.0;137 verticalOffset = 20.0; 138 138 contentView = [[self window] contentView]; 139 139 enumerator = [_sortedKeys reverseObjectEnumerator]; … … 150 150 value = [_allValues objectForKey:key]; 151 151 152 nameTextField = [self _textFieldFromArchetype:_nameTextField]; 153 [nameTextField setStringValue:[key stringByAppendingString:@":"]]; 154 155 valueTextField = [self _textFieldFromArchetype:_valueTextField]; 156 [valueTextField setStringValue:value]; 152 nameTextField = [self _textFieldLikeTextField:_nameTextField withStringValue:[key stringByAppendingString:@":"]]; 153 valueTextField = [self _textFieldLikeTextField:_valueTextField withStringValue:value]; 157 154 158 155 nameSize = [[nameTextField cell] cellSizeForBounds:NSMakeRect(0.0, 0.0, [nameTextField frame].size.width, 10000.0)]; … … 168 165 [contentView addSubview:valueTextField]; 169 166 170 verticalOffset += height + 2.0;167 verticalOffset += height + 6.0; 171 168 } 172 169 173 170 windowFrame = [[self window] frame]; 174 171 height = windowFrame.size.height; 175 windowFrame.size.height = verticalOffset + 2 8.0;172 windowFrame.size.height = verticalOffset + 26.0; 176 173 windowFrame.origin.y -= windowFrame.size.height - height; 177 [[self window] setFrame:windowFrame display:YES animate: YES];178 } 179 180 181 182 - (NSTextField *)_textField FromArchetype:(NSTextField *)archetypeTextField{174 [[self window] setFrame:windowFrame display:YES animate:NO]; 175 } 176 177 178 179 - (NSTextField *)_textFieldLikeTextField:(NSTextField *)archetypeTextField withStringValue:(NSString *)string { 183 180 NSTextField *textField; 184 181 … … 193 190 [textField setDrawsBackground:[archetypeTextField drawsBackground]]; 194 191 [textField setBackgroundColor:[archetypeTextField backgroundColor]]; 192 [textField setStringValue:string]; 195 193 196 194 return [textField autorelease]; … … 224 222 selector:@selector(browserControllerDidShowFile:) 225 223 name:FHBrowserControllerDidShowFile]; 226 227 [ self window];224 225 [(NSPanel *) [self window] setBecomesKeyOnlyIfNeeded:YES]; 228 226 229 227 return self;
