Skip navigation.
 
mlNSMatrix beeping when sheets are running
FROM : pavao
DATE : Mon Dec 20 19:32:43 2004

Hi,

When I have some sheet running in my app and then double click some item listed in the first column of a NSMatrix residing in another window (also belonging to the application) the computer beeps. The method that I had set with NSMatrix's setDoubleAction: is called anyway. The beep doesn't happen if there isn't any sheet running and it doesn't happen if I double-click something in the second column of the matrix. The backtrace of where the beep occurs is at the end of this message.

I don't know much of PPC asm, but in the debugger it looks like -[NSControl sendAction:to:] has a couple of conditional branch instructions that make it jump over the NSBeep just after calling the target's doubleAction selector. I just can't figure out what am I doing wrong. Can someone shed some light on this?

#0    0x92fa3ed0 in NSBeep
#1    0x92e7ef70 in -[NSControl sendAction:to:]
#2    0x92e78224 in -[NSApplication sendAction:to:from:]
#3    0x92f6550c in -[NSMatrix sendAction:to:]
#4    0x93095a5c in -[NSMatrix _sendDoubleActionToCellAt:]
#5    0x92f07d64 in -[NSMatrix _mouseDownNonListmode:]
#6    0x92f6433c in -[NSMatrix mouseDown:]
#7    0x92e03178 in -[NSWindow sendEvent:]
#8    0x92df583c in -[NSApplication sendEvent:]
#9    0x92dfdc54 in -[NSApplication run]
#10    0x92eba2b8 in NSApplicationMain
#11    0x000e2f74 in main at main.m:13

TIA,
--
Joćo Pavćo

Related mailsAuthorDate
No related mails found.