Re: NSTimer discarding exception 'NSInternalInconsistencyException'
Re: NSTimer discarding exception 'NSInternalInconsistencyException'
- Subject: Re: NSTimer discarding exception 'NSInternalInconsistencyException'
- From: j o a r <email@hidden>
- Date: Sun, 14 Mar 2004 10:54:50 +0100
On 2004-03-14, at 10.29, Fabio Genoese wrote:
>
Anyway, I just checked my code. There are no NSRunAlertPanels in use
>
(or going to be used) when the app crashes. Nor am I passing nil (null
>
in Java) to any Object.
But you crash indicates that you do (not use an alert panel of course,
but that you try to assign a nil string value to a cell).
Add a check that looks something like this (one for every string
assignment in your updateUI method), and set a breakpoint inside the
if-statement:
if (myString == nil)
{
// Set breakpoint here
NSLog(@"myString == nil");
}
>
What I am doing is:
>
a) create a new NSTimer that invokes a method named updateUI every few
>
milliseconds
"every few milliseconds"? Ouch... I hope you at least check for changed
values before you update the controls?
Are there no inter-thread communication tools for Java? What about DO,
does it work for Cocoa-Java projects?
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.