NSTreeController with useLazyEvaluation failure
NSTreeController with useLazyEvaluation failure
- Subject: NSTreeController with useLazyEvaluation failure
- From: David Hoerl <email@hidden>
- Date: Wed, 25 Mar 2009 14:23:25 -0400
Using 10.5.6, my inspection panel has a NSTreeController that has two
bindings - ContentSet and Parameter (the first to a set of objects,
the latter to the manageObjectContext). Using NSLog's I have verified
the bindings are correct.
The problem comes when I set "Uses Lazy Evaluation" (ala
setUsesLazyEvaluation:YES]) - when this box is checked in IB3, the
panel never appears and I get the following on the console:
2009-03-25 ... *** -[NSCFArray objectIDAtIndex:]: unrecognized
selector sent to instance 0x1671b4d0
2009-03-25 ... *** -[NSCFArray objectIDAtIndex:]: unrecognized
selector sent to instance 0x1671b4d0
This behavior is repeatable - check, no good, uncheck, all is fine.
The contentSet binding has three objects in it for this test.
Using the debugger to catch exceptions, I get the following:
#0 0x93a23e17 in objc_exception_throw
#1 0x96a1330a in -[NSObject doesNotRecognizeSelector:]
#2 0x96a1190c in ___forwarding___
#3 0x96a119d2 in __forwarding_prep_0___
#4 0x914bc0ce in _NSObjectIDAtIndex
#5 0x916636a7 in -[NSTreeControllerTreeNode updateChildNodesForKeyPath:]
#6 0x915bdbc7 in -[NSTreeController _prepareControllerTree]
#7 0x915c00ea in -[NSTreeController setContent:]
#8 0x911c2ede in -[NSArrayDetailBinder _refreshDetailContentInBackground:]
#9 0x9117f993 in -[NSBinder _performConnectionEstablishedRefresh]
#10 0x91177c04 in -[NSObject(NSKeyValueBindingCreation)
bind:toObject:withKeyPath:options:]
#11 0x911b423a in -[NSNibBindingConnector establishConnection]
#12 0x90f8b318 in -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:]
#13 0x90f81686 in loadNib
#14 0x90f80fe8 in +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:]
#15 0x90f80c2b in +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:]
#16 0x90fc0f49 in -[NSWindowController loadWindow]
#17 0x90fc0ce2 in -[NSWindowController window]
#18 0x00109581 in -[DHInterfaceDocument showInspector:] at
DHInterfaceDocument.m:592
#19 0x9403022e in __NSFireDelayedPerform
#20 0x96992b25 in CFRunLoopRunSpecific
#21 0x96992cd8 in CFRunLoopRunInMode
#22 0x95b6a2c0 in RunCurrentEventLoopInMode
#23 0x95b6a0d9 in ReceiveNextEventCommon
#24 0x95b69f4d in BlockUntilNextEventMatchingListInMode
#25 0x90fbad7d in _DPSNextEvent
#26 0x90fba630 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#27 0x90fb366b in -[NSApplication run]
#28 0x90f808a4 in NSApplicationMain
#29 0x000025e2 in main at main.m:13
Any suggestions on how to resolve or further debug would be most appreciated!
David
_______________________________________________
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