NSPopupButton crash
NSPopupButton crash
- Subject: NSPopupButton crash
- From: Chaz McGarvey <email@hidden>
- Date: Wed, 16 Feb 2005 15:35:34 -0700
Hello:
I'm getting a crash I don't know how to fix.
It occurs when a menu item is added to a NSPopupButton while the popup
button is tracking. Sometimes it will crash and other times it will
just mess up on the drawing. When it does crash, here is the stack:
#0 0x90190f94 in CFRetain
#1 0x927e7644 in GetControlID
#2 0x927fd9cc in GetApplicationTextEncoding
#3 0x927f5a94 in EnableMenuItem
#4 0x927d54d8 in GetWindowList
#5 0x927d1fa0 in _NotifyEventLoopObservers
#6 0x927d2214 in _NotifyEventLoopObservers
#7 0x927d6694 in SendEventToEventTargetWithOptions
#8 0x927ddd34 in GetEventPlatformEventRecord
#9 0x927d7e54 in CreateControlEvent
#10 0x927d7f5c in CreateControlEvent
#11 0x927d7f5c in CreateControlEvent
#12 0x927dcb5c in GetMainEventQueue
#13 0x9280aa70 in HIViewGetFirstSubview
#14 0x927d1a70 in _mh_dylib_header
#15 0x927d2ad0 in GetWindowPort
#16 0x927d3f10 in GetEventKind
#17 0x90191ca0 in __CFRunLoopDoObservers
#18 0x90195e74 in CFRunLoopRunSpecific
#19 0x927d5f60 in GetWindowList
#20 0x927dc640 in GetMainEventQueue
#21 0x927fe1a0 in GetApplicationTextEncoding
#22 0x927f0f7c in HIViewGetRoot
#23 0x92818214 in DisableScreenUpdates
#24 0x928d005c in _HandlePopUpMenuSelection5
#25 0x928cff00 in _HandlePopUpMenuSelection5
#26 0x92f381ac in _NSPopUpCarbonMenu1
#27 0x92f48258 in -[NSCarbonMenuImpl
popUpMenu:atLocation:width:forView:withSelectedItem:withFont:]
#28 0x92f47f10 in -[NSPopUpButtonCell
trackMouse:inRect:ofView:untilMouseUp:]
#29 0x92e8f010 in -[NSControl mouseDown:]
#30 0x92e03178 in -[NSWindow sendEvent:]
#31 0x92df583c in -[NSApplication sendEvent:]
#32 0x92dfdc54 in -[NSApplication run]
#33 0x92eba2b8 in NSApplicationMain
#34 0x004b4e7c in main at main.m:36
I guess the obvious solution is to just make sure the menu isn't
changed while the button is tracking, but this kind of seems like a
system bug to me. What do you think?
Thanks,
Chaz McGarvey
http://www.brokenzipper.com
_______________________________________________
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