In a modal pickle

  • I have a core data app that opens two windows when it starts up. One of the two has a NSSearchField. The cursor is in search field and I can enter and delete text, but any other operation on either of the windows causes the screen to flash and the system beeps. This even happens when I hit Command-Q to try to exit the app. Nothing appears in the GDB debugger and if I pause the app in the debugger it's always in main. Any idea what could make it go in such a mode?

    Thanks,
    Joseph Ayers
  • On Sat, May 19, 2012 at 12:04 PM, NUExchange <j.ayers...> wrote:
    > I have a core data app that opens two windows when it starts up. One of the two has a NSSearchField. The cursor is in search field and I can enter and delete text, but any other operation on either of the windows causes the screen to flash and the system beeps. This even happens when I hit Command-Q to try to exit the app. Nothing appears in the GDB debugger and if I pause the app in the debugger it's always in main. Any idea what could make it go in such a mode?

    Maybe there's an NSBeep() hiding somewhere in your code or a 3rd party
    framework? It shouldn't be in the system frameworks, but it has
    happened before.

    Try setting a breakpoint on NSBeep.
  • Just tried that. Unfortunately, no joy...

    Joseph

    On May 19, 2012, at 3:23 PM, Stephen J. Butler wrote:

    > On Sat, May 19, 2012 at 12:04 PM, NUExchange <j.ayers...> wrote:
    >> I have a core data app that opens two windows when it starts up. One of the two has a NSSearchField. The cursor is in search field and I can enter and delete text, but any other operation on either of the windows causes the screen to flash and the system beeps. This even happens when I hit Command-Q to try to exit the app. Nothing appears in the GDB debugger and if I pause the app in the debugger it's always in main. Any idea what could make it go in such a mode?
    >
    > Maybe there's an NSBeep() hiding somewhere in your code or a 3rd party
    > framework? It shouldn't be in the system frameworks, but it has
    > happened before.
    >
    > Try setting a breakpoint on NSBeep.
  • On May 19, 2012, at 10:04 AM, NUExchange <j.ayers...> wrote:

    > I have a core data app that opens two windows when it starts up. One of the two has a NSSearchField. The cursor is in search field and I can enter and delete text, but any other operation on either of the windows causes the screen to flash and the system beeps. This even happens when I hit Command-Q to try to exit the app. Nothing appears in the GDB debugger and if I pause the app in the debugger it's always in main. Any idea what could make it go in such a mode?

    Set a breakpoint on NSBeep.

    Are you running either of these windows modally? We need to see your code.

    --Kyle Sluder
previous month may 2012 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today