-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Printer settings window doesn't update variables (e.g. bedFront) #53
Comments
Cant follow your problem. After testing 2013-08-26 15:29:18.934 Repetier-Host Mac[11954:303] bedFront = -100.000000 bedFront 2 is after saveToConfig. saveToConfig now ends with
to reload changes from sanityCheck. |
I added the 3 lines at the end in "saveToConfig", still not working. 2013-08-26 15:42:03.803 Repetier-Host Mac[4488:303] bedFront = 0.000000 2013-08-26 15:42:03.815 Repetier-Host Mac[4488:303] bedFront 2 = 0.000000 2013-08-26 15:42:13.591 Repetier-Host Mac[4488:303] bedFront = 0.000000 2013-08-26 15:42:13.603 Repetier-Host Mac[4488:303] bedFront 2 = 0.000000 2013-08-26 15:42:19.699 Repetier-Host Mac[4488:303] bedFront = 0.000000 2013-08-26 15:42:19.711 Repetier-Host Mac[4488:303] bedFront 2 = 0.000000 I'm using Xcode 4.6.3, OS X 10.8.4. |
... try to enter a value in bedFront field without "return" or "tab" and click the Apply Button! |
Ok tested it and even that was working. I have uploaded my version on github. There are also changes in the .xib file so perhaps I have added some bindings that are missing in your version. |
tested! Okay, but entering a non numeric value like "abc" causes an exception. 2013-08-26 16:18:12.400 Repetier-Host Mac[5855:303] bedFront = 100.000000 2013-08-26 16:18:12.408 Repetier-Host Mac[5855:303] bedFront 2 = 0.000000 2013-08-26 16:18:23.740 Repetier-Host Mac[5855:303] bedFront = 50.000000 2013-08-26 16:18:23.748 Repetier-Host Mac[5855:303] bedFront 2 = 0.000000 2013-08-26 16:18:30.996 Repetier-Host Mac[5855:303] bedFront = 0.000000 2013-08-26 16:18:31.003 Repetier-Host Mac[5855:303] bedFront 2 = 0.000000 2013-08-26 16:18:36.306 Repetier-Host Mac[5855:303] Exception detected while handling key input. 2013-08-26 16:18:36.307 Repetier-Host Mac[5855:303] [ setNilValueForKey]: could not set nil as the value for the key bedFront. 2013-08-26 16:18:36.313 Repetier-Host Mac[5855:303] ( 0 CoreFoundation 0x00007fff8e035b06 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff94e143f0 objc_exception_throw + 43 2 CoreFoundation 0x00007fff8e0358dc +[NSException raise:format:] + 204 3 Foundation 0x00007fff94216769 -[NSObject(NSKeyValueCoding) setNilValueForKey:] + 76 4 Foundation 0x00007fff941b3165 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 408 5 Foundation 0x00007fff9421695f -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 350 6 AppKit 0x00007fff979e5de8 -[NSBinder _setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error:] + 274 7 AppKit 0x00007fff979e5c7d -[NSBinder setValue:forBinding:error:] + 248 8 AppKit 0x00007fff9802e43f -[NSValueBinder _applyObjectValue:forBinding:canRecoverFromErrors:handleErrors:typeOfAlert:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert:] + 194 9 AppKit 0x00007fff9802e8dc -[NSValueBinder applyDisplayedValueHandleErrors:typeOfAlert:canRecoverFromErrors:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert:error:] + 612 10 AppKit 0x00007fff9802ea53 -[NSValueBinder _applyDisplayedValueIfHasUncommittedChangesWithHandleErrors:typeOfAlert:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert:error:] + 125 11 AppKit 0x00007fff9802f4d4 -[NSValueBinder validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled:] + 502 12 AppKit 0x00007fff979486b3 -[_NSBindingAdaptor _validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled:bindingAdaptor:] + 169 13 AppKit 0x00007fff979485ef -[_NSBindingAdaptor validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled:] + 243 14 AppKit 0x00007fff97f914b6 -[NSTextField textDidChange:] + 182 15 CoreFoundation 0x00007fff8dfe7eda _CFXNotificationPost + 2554 16 Foundation 0x00007fff941937b6 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 17 AppKit 0x00007fff97947f50 -[NSTextView(NSSharing) didChangeText] + 339 18 AppKit 0x00007fff97fe4311 _NSDoUserReplaceForCharRange + 390 19 AppKit 0x00007fff97fe4541 _NSDoUserDeleteForCharRange + 38 20 AppKit 0x00007fff97fcde02 -[NSTextView(NSKeyBindingCommands) deleteBackward:] + 440 21 AppKit 0x00007fff97975f6c -[NSResponder doCommandBySelector:] + 75 22 AppKit 0x00007fff97975dce -[NSTextView doCommandBySelector:] + 197 23 AppKit 0x00007fff979f8e6e -[NSKeyBindingManager(NSKeyBindingManager_MultiClients) interpretEventAsCommand:forClient:] + 2200 24 AppKit 0x00007fff979f82db -[NSTextInputContext handleEvent:] + 939 25 AppKit 0x00007fff979f7ea7 -[NSView interpretKeyEvents:] + 183 26 AppKit 0x00007fff97944c57 -[NSTextView keyDown:] + 723 27 AppKit 0x00007fff97b60020 -[NSWindow sendEvent:] + 9687 28 AppKit 0x00007fff97b5b644 -[NSApplication sendEvent:] + 5761 29 AppKit 0x00007fff97a7121a -[NSApplication run] + 636 30 AppKit 0x00007fff97a15bd6 NSApplicationMain + 869 31 Repetier-Host Mac 0x00000001000075b9 main + 23257 32 Repetier-Host Mac 0x0000000100001ab4 start + 52 ) |
I started in Debug mode and added a NSlog in PrinterSettingsController:
bedFont doesn't change the value.
The text was updated successfully, but these errors were encountered: