I have an object that is an NSComboBox delegate. For some reason, when I 
perform an editing operation in an unrelated tableView (inserting a new object 
and editing it in the field editor), any new text insertion I perform in one of 
3 NSComboBoxes ends up calling my delegate object twice. Is there a way for me 
to find out what object is posting a  -[NSNotificationCenter 
postNotificationName:object:userInfo:] that eventually calls my NSComboBox 
delegate?

Patrick

ps I have included a backtrace of the events prior to my delegate being called.


* thread #1: tid = 0x2303, 0x000537b6 ADR ToolBox`-[UIController 
comboBox:indexOfItemWithStringValue:](self=0x05ba4a00, _cmd=0x9562344a, 
aComboBox=0x015b0320, aString=0x0b576500) + 38 at UIController.m:2218, stop 
reason = breakpoint 1.1
    frame #0: 0x000537b6 Application`-[UIController 
comboBox:indexOfItemWithStringValue:](self=0x05ba4a00, _cmd=0x9562344a, 
aComboBox=0x015b0320, aString=0x0b576500) + 38 at UIController.m:2218
    frame #1: 0x95017e3b AppKit`-[NSComboBox(NSComboBoxCellDataSource) 
comboBoxCell:indexOfItemWithStringValue:] + 88
    frame #2: 0x9501877a AppKit`-[NSComboBoxCell 
synchronizeTableViewSelectionWithStringValue:] + 97
    frame #3: 0x9501885d AppKit`-[NSComboBoxCell 
synchronizeTableViewSelectionWithText:] + 79
    frame #4: 0x95018e12 AppKit`-[NSComboBoxCell _complete:] + 122
    frame #5: 0x9b798df1 Foundation`__-[NSNotificationCenter 
addObserver:selector:name:object:]_block_invoke_1 + 49
    frame #6: 0x93145903 CoreFoundation`___CFXNotificationPost_block_invoke_1 + 
275
    frame #7: 0x93110688 CoreFoundation`_CFXNotificationPost + 2776
    frame #8: 0x9b783fde Foundation`-[NSNotificationCenter 
postNotificationName:object:userInfo:] + 92
    frame #9: 0x9533fabf AppKit`-[NSTextView(NSSharing) didChangeText] + 357
    frame #10: 0x95308a36 AppKit`-[NSTextView insertText:replacementRange:] + 
2218
    frame #11: 0x954ea903 AppKit`-[NSTextInputContext 
insertText:replacementRange:] + 430
    frame #12: 0x954e7fdd AppKit`-[NSTextInputContext handleTSMEvent:] + 2654
    frame #13: 0x954e72aa AppKit`_NSTSMEventHandler + 214
    frame #14: 0x920ddc0c 
HIToolbox`_InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, 
void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
    frame #15: 0x91f59313 HIToolbox`DispatchEventToHandlers(EventTargetRec*, 
OpaqueEventRef*, HandlerCallRec*) + 1602
    frame #16: 0x91f58790 
HIToolbox`SendEventToEventTargetInternal(OpaqueEventRef*, 
OpaqueEventTargetRef*, HandlerCallRec*) + 482
    frame #17: 0x91f6d571 HIToolbox`SendEventToEventTarget + 76
    frame #18: 0x921e166e HIToolbox`SendTSMEvent + 74
    frame #19: 0x921e1f69 HIToolbox`SendUnicodeTextAEToUnicodeDoc + 753
    frame #20: 0x921e0e86 HIToolbox`TSMKeyEvent + 1007
    frame #21: 0x91f82061 HIToolbox`TSMProcessRawKeyEvent + 2795
    frame #22: 0x954eb15a AppKit`-[NSTextInputContext handleEvent:] + 1257
    frame #23: 0x9538e57e AppKit`-[NSView interpretKeyEvents:] + 220
    frame #24: 0x952fb64a AppKit`-[NSTextView keyDown:] + 676
    frame #25: 0x94d55aeb AppKit`-[NSWindow sendEvent:] + 10891
    frame #26: 0x94cedf77 AppKit`-[NSApplication sendEvent:] + 4788
    frame #27: 0x000a73b0 Application`-[PCShuttleWindow 
sendEvent:](self=0x05178f50, _cmd=0x956cfa08, anEvent=0x0b5621b0) + 80 at 
PCShuttleWindow.m:6
    frame #28: 0x94c7fb21 AppKit`-[NSApplication run] + 1007
    frame #29: 0x94f10ac5 AppKit`NSApplicationMain + 1054
    frame #30: 0x0003a7c4 Application`main(argc=3, argv=0xbffff7ec) + 36 at 
main.m:13
    frame #31: 0x00002cb5 Application`start + 53
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to