NSTreeController won't initWithCoder on Leopard
NSTreeController won't initWithCoder on Leopard
- Subject: NSTreeController won't initWithCoder on Leopard
- From: Eric Slosser <email@hidden>
- Date: Wed, 02 Nov 2011 21:42:59 -0400
I've created a modal dialog that uses an NSTreeController as part of a master-detail style interface to a hierarchical storage model. Using bindings (not delegate methods) to supply the data. Using 10.4 as the base SDK. XIB attached.
Works fine on Lion and Snow Leopard. It's a little odd on Tiger (throws exceptions but eventually presents the info).
But on Leopard (10.5.8), I get the following exception and stack when I try to bring up the modal.
Why would NSTreeController be asking a NSTreeControllerTreeNode (which it created, not me) to do an unrecognized selector? I'd think that family of objects would be self-consistent on a given install.
I'm stumped, and so is my google-fu.
Does anyone have a pearl they can cast?
2011-11-02 16:46:52.890 Kurzweil 3000[343:813] *** -[NSTreeControllerTreeNode initWithRepresentedObject:]: unrecognized selector sent to instance 0x541990
#0 0x94e674c0 in objc_exception_throw ()
#1 0x92d58eb8 in -[NSObject doesNotRecognizeSelector:] ()
#2 0x92d574b4 in ___forwarding___ ()
#3 0x92d57748 in __forwarding_prep_0___ ()
#4 0x9377449c in -[NSTreeControllerTreeNode initWithRepresentedObject:treeController:] ()
#5 0x936de370 in -[NSTreeController createChildNodeForRepresentedObject:] ()
#6 0x936dcda0 in -[NSTreeController _prepareControllerTree] ()
#7 0x936dd2e4 in -[NSTreeController _init] ()
#8 0x93331148 in -[NSController initWithCoder:] ()
#9 0x93330ee8 in -[NSObjectController initWithCoder:] ()
#10 0x936dd4a8 in -[NSTreeController initWithCoder:] ()
#11 0x9298f834 in _decodeObjectBinary ()
#12 0x9298ee24 in _decodeObject ()
#13 0x9312c600 in -[NSNibConnector initWithCoder:] ()
#14 0x93324aac in -[NSNibBindingConnector initWithCoder:] ()
#15 0x9298f834 in _decodeObjectBinary ()
#16 0x92990794 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] ()
#17 0x92990d58 in -[NSArray(NSArray) initWithCoder:] ()
#18 0x9298f834 in _decodeObjectBinary ()
#19 0x9298ee24 in _decodeObject ()
#20 0x9312b704 in -[NSIBObjectData initWithCoder:] ()
#21 0x9298f834 in _decodeObjectBinary ()
#22 0x9298ee24 in _decodeObject ()
#23 0x9312af70 in loadNib ()
#24 0x9312a96c in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] ()
#25 0x93165f60 in -[NSWindowController loadWindow] ()
#26 0x93165d1c in -[NSWindowController window] ()
#27 0x00236a80 in -[UniLibWindowController runModal] ()
ftp://v-fx.com/public/UniLib.xib
_______________________________________________
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