GrP not requesting _registerDragTypes because the window is dying already
GrP not requesting _registerDragTypes because the window is dying already
- Subject: GrP not requesting _registerDragTypes because the window is dying already
- From: Ken Victor <email@hidden>
- Date: Sat, 15 Apr 2006 15:29:20 -0700
i have a sheet (on a window of course) that contains (amongst other
controls and view) an "OK" NSButton and a "Cancel" NSButton and some
editable NSTextFields. if i type a return or enter, then i get the
following message twice in the console log:
GrP not requesting _registerDragTypes because the window is dying already
if i click on the "OK" button or click on the "Cancel" button or type
command-period or escape, i don't get the message.
i did have a custom field editor for the text fields, but i replaced
it with a standard NSTextView and still have the same behavior. i
also replaced the code for my "ok" action to be the same as the code
for my "cancel" action and still get the same anomalous behavior.
a google search and a search of the archives revealed a few similar
issues, but no resolution or enlightment as to the real cause.
can anyone shed some light on this for me please? below is a stack
trace from a breakpoint at NSLog when the message is being output to
the console log:
#0 0x928f24c0 in NSLog
#1 0x93750ce0 in -[NSTextView updateDragTypeRegistration]
#2 0x937569c8 in -[NSTextView(NSPrivate) _setWindow:]
#3 0x9076c960 in CFArrayApplyFunction
#4 0x936a8280 in -[NSView _setWindow:]
#5 0x936a8504 in -[NSView addSubview:]
#6 0x93757ca8 in editTextCellWithTextView
#7 0x9375773c in _NSEditTextCell
#8 0x937573c0 in -[NSTextFieldCell
_selectOrEdit:inView:target:editor:event:start:end:]
#9 0x937572d8 in -[NSCell
selectWithFrame:inView:editor:delegate:start:length:]
#10 0x9379f48c in -[NSTextField selectText:]
#11 0x9376bd64 in -[NSTextField textDidEndEditing:]
#12 0x928e6cf8 in _nsnote_callback
#13 0x907844c4 in __CFXNotificationPost
#14 0x9077c5a0 in _CFXNotificationPostNotification
#15 0x928d1100 in -[NSNotificationCenter
postNotificationName:object:userInfo:]
#16 0x937bd500 in -[NSTextView(NSPrivate) _giveUpFirstResponder:]
#17 0x937bd2ec in -[NSTextView(NSKeyBindingCommands) insertNewline:]
#18 0x937bcd4c in -[NSTextView doCommandBySelector:]
#19 0x937703b0 in
-[NSKeyBindingManager(NSKeyBindingManager_MultiClients)
interpretEventAsCommand:forClient:]
#20 0x9376eaac in -[NSTSMInputContext interpretKeyEvents:]
#21 0x9376de8c in -[NSView interpretKeyEvents:]
#22 0x9376dce0 in -[NSTextView keyDown:]
#23 0x936e95c0 in -[NSWindow sendEvent:]
#24 0x93691ef4 in -[NSApplication sendEvent:]
#25 0x000cda80 in -[KVApplication sendEvent:] at KVApplication.mm:274
#26 0x93689330 in -[NSApplication run]
#27 0x93779e68 in NSApplicationMain
#28 0x00003210 in main at main.m:12
thanx,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden