Experimenting in Inspector with readonly inputs

This commit is contained in:
michael starke
2013-07-24 03:04:11 +02:00
parent 4a35d0d4ff
commit af4336e94b
6 changed files with 203 additions and 176 deletions

View File

@@ -410,10 +410,14 @@ enum {
- (IBAction)finishEdit:(id)sender {
NSUndoManager *undoManger = [[[self windowController] document] undoManager];
[undoManger setActionName:@"Edit"];
if([undoManger canUndo]) {
[undoManger setActionName:@"Edit"];
}
[undoManger endUndoGrouping];
[self.titleTextField setEditable:NO];
[self.titleTextField setSelectable:YES];
[self.usernameTextField setEditable:NO];
[self.usernameTextField setSelectable:YES];
}