Hi, I have an NSTextField with a number formatter and an NSStepper in a view that is used in an NSPopover. The values of both interface items are bound to an ivar of the view controller via an object controller. Both the text field and the stepper have a max value of 99999.
When I enter a value superior to that in the text field and tab out, or click another field, an exception is raised. The backtrace is pasted below. (Depending on my next action, or the way I exit the text field in the first place, one or two alert views may show with the 'Value "x" is too large' warning. The first alert has no title bar and can't be dismissed by clicking the discard or ok buttons, the other alert is a proper window that can be dismissed. I see these alerts also when the stepper is unbound, so the issue looks to be only with the text field. I'm not sure what, if anything, I'm doing wrong, and how to get this setup to function properly. I've done this type of binding before, but never in a popover window. Could it be a framework bug? Any ideas about what might be wrong with the setup, and/or how to solve the issue? -António ========== 2011-10-21 11:49:49.520 AwesomeApp[35994:707] -[NSPopoverFrame titlebarRect]: unrecognized selector sent to instance 0x1050e7a30 2011-10-21 11:49:49.521 AwesomeApp[35994:707] Exception detected while handling key input. 2011-10-21 11:49:49.521 AwesomeApp[35994:707] -[NSPopoverFrame titlebarRect]: unrecognized selector sent to instance 0x1050e7a30 2011-10-21 11:49:49.530 AwesomeApp[35994:707] ( 0 CoreFoundation 0x00007fff892c1286 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8d3ebd5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff8934d4ce -[NSObject doesNotRecognizeSelector:] + 190 3 CoreFoundation 0x00007fff892ae133 ___forwarding___ + 371 4 CoreFoundation 0x00007fff892f813d __forwarding_prep_1___ + 237 5 AppKit 0x00007fff90082870 -[NSWindow(NSSheets) startRectForSheet:] + 151 6 AppKit 0x00007fff900822d2 -[NSWindow(NSSheets) _positionSheet:constrained:andDisplay:] + 151 7 AppKit 0x00007fff900813b2 -[NSMoveHelper(NSSheets) _moveParent:andOpenSheet:] + 774 8 AppKit 0x00007fff90082e8f -[NSWindow(NSSheets) _orderFrontRelativeToWindow:] + 192 9 AppKit 0x00007fff8fc222f2 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1679 10 AppKit 0x00007fff8fc21b7a -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 807 11 AppKit 0x00007fff8fddc5cb -[NSApplication _orderFrontModalWindow:relativeToWindow:] + 662 12 AppKit 0x00007fff8fddc094 -[NSApplication _commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelector:contextInfo:] + 831 13 AppKit 0x00007fff8fddc92e -[NSApplication beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:] + 134 14 AppKit 0x00007fff8fdd008b -[NSAlert beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:] + 295 15 AppKit 0x00007fff8fddfdb0 -[NSApplication(NSErrorPresentation) presentError:modalForWindow:delegate:didPresentSelector:contextInfo:] + 446 16 AppKit 0x00007fff90198893 -[NSValueBinder _presentDiscardEditingSheetWithError:discardEditingCallback:otherCallback:callbackContextInfo:relatedToBinding:] + 314 17 AppKit 0x00007fff901991d8 -[NSValueBinder handleValidationError:description:inEditor:errorUserInterfaceHandled:] + 510 18 AppKit 0x00007fff901d9180 -[_NSBindingAdaptor _handleValidationError:description:inEditor:errorUserInterfaceHandled:bindingAdaptor:] + 194 19 AppKit 0x00007fff901d92a3 -[_NSBindingAdaptor handleValidationError:description:inEditor:errorUserInterfaceHandled:] + 280 20 AppKit 0x00007fff8fe50d98 -[NSCell _validateEntryString:uiHandled:] + 455 21 AppKit 0x00007fff900f4303 -[NSTextField textShouldEndEditing:] + 80 22 AppKit 0x00007fff90155e68 -[NSTextView(NSSharing) resignFirstResponder] + 426 23 AppKit 0x00007fff8fc43bf5 -[NSWindow makeFirstResponder:] + 429 24 AppKit 0x00007fff901b214d -[NSWindow _makeParentWindowHaveFirstResponder:] + 48 25 AppKit 0x00007fff8fc43a94 -[NSWindow makeFirstResponder:] + 76 26 AppKit 0x00007fff9014b2ab -[NSTextView(NSPrivate) _giveUpFirstResponder:] + 256 27 AppKit 0x00007fff90133ccc -[NSTextView(NSKeyBindingCommands) insertTab:] + 78 28 CoreFoundation 0x00007fff892b0a1d -[NSObject performSelector:withObject:] + 61 29 AppKit 0x00007fff90049bad -[NSResponder doCommandBySelector:] + 62 30 AppKit 0x00007fff9012490e -[NSTextView doCommandBySelector:] + 198 31 AppKit 0x00007fff8ff7dfff -[NSKeyBindingManager(NSKeyBindingManager_MultiClients) interpretEventAsCommand:forClient:] + 1799 32 AppKit 0x00007fff902cfb4a -[NSTextInputContext handleEvent:] + 747 33 AppKit 0x00007fff9019beaf -[NSView interpretKeyEvents:] + 248 34 AppKit 0x00007fff90114c65 -[NSTextView keyDown:] + 691 35 AppKit 0x00007fff8fbf4544 -[NSWindow sendEvent:] + 7430 36 AppKit 0x00007fff8fb8c68f -[NSApplication sendEvent:] + 5593 37 AppKit 0x00007fff8fb22682 -[NSApplication run] + 555 38 AppKit 0x00007fff8fda180c NSApplicationMain + 867 39 AwesomeApp 0x00000001000011e2 main + 34 40 AwesomeApp 0x00000001000011b4 start + 52 ----------------------------------------------------------- Some things have to be believed to be seen. --Ralph Hodgson ----------------------------------------------------------- _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com