Exception from [NSEvent startPeriodicEventsAfterDelay:withPeriod]
Exception from [NSEvent startPeriodicEventsAfterDelay:withPeriod]
- Subject: Exception from [NSEvent startPeriodicEventsAfterDelay:withPeriod]
- From: Kevin Elliott <email@hidden>
- Date: Mon, 8 Jul 2002 17:10:38 -0700
I've got a window that I run as a modal window using [NSApp
runModalWindow:]. It contains a bunch of controls including 2 NSTextField.
If I mess around with the selection in either NSTextField I soon get an
exception thrown. I'm assuming it's coming from [NSEvent
startPeriodicEventsAfterDelay:withPeriod]- the console gets a message saying
assertion failed and that agrees with what the documentation says about this
methods behavior. My question is- what am I supposed to do about it? Right
now I'm catching the exception at the same place I called runModalWindow and
it seems to be working fine, but that strikes me as rather ugly. I'm not
calling the method directly (I assume it's being called somewhere deep in
Cocoa's event handing) and I don't really know any way to narrow the source
of the problem.
Worst case I suppose I could live with my while loop around
runModalWindow, but that seems ugly and inelegant. Can anyone offer any
clue as to what this exception means and what I'm supposed to do about it?
>
-Kevin Elliott
>
Software Engineer
>
CharisMac Engineering
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.