Delayed perform crash on save
Delayed perform crash on save
- Subject: Delayed perform crash on save
- From: Quincey Morris <email@hidden>
- Date: Tue, 4 Aug 2009 17:14:57 -0700
I have a document window with a text field that's bound to a property
of the window controller, which has a custom setter that transfers the
string value to the data model, and this works fine in general.
However, if I make a change to the text field *without* ending the
edit, then choose Save from the File menu, I get a crash like this:
-[NSClassicMapTable invoke]: unrecognized selector sent to instance
0x106d980
(where the receiving object appears to be random -- it's not always
the same class) and a backtrace like this:
#0 0x96d7ae17 in objc_exception_throw
#1 0x95c062aa in -[NSObject doesNotRecognizeSelector:]
#2 0x95c048ac in ___forwarding___
#3 0x95c04972 in __forwarding_prep_0___
#4 0x9626f89e in __NSFireDelayedPerform
#5 0x95b85ac5 in CFRunLoopRunSpecific
#6 0x95b85c78 in CFRunLoopRunInMode
#7 0x92d3b28c in RunCurrentEventLoopInMode
#8 0x92d3b0a5 in ReceiveNextEventCommon
#9 0x92d3af19 in BlockUntilNextEventMatchingListInMode
#10 0x93558d0d in _DPSNextEvent
#11 0x935585c0 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#12 0x935515fb in -[NSApplication run]
#13 0x9351e834 in NSApplicationMain
#14 0x000021ac in main at main.m:13
In other words, a performSelector:afterDelay: has been done (not by
me) and some internally created NSInvocation object pointer points to
something else. (This is a 10.5.7 garbage collected app.)
I've verified that the error happens after the custom setter and
before writeToURL:ofType: error: is invoked, and I presume it's a
result of the window's field editor trying to commit its changes, but
beyond that I've no idea what's going on, or whether I've done
anything wrong.
Anyone got any ideas? Am I missing something obvious?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden