• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
-[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)


  • Subject: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)
  • From: Mikkel Eide Eriksen <email@hidden>
  • Date: Tue, 14 Feb 2012 21:34:24 +0100

Hi,

I was going to implement a source list, but it's causing XCode and the Simulator to freak out. I did the following in my existing project (and then in a fresh project to make sure):

1. Create window nib
2. Add a source list
3. Menu: Editor > Simulate Document

From the stacktrace it looks like the simulator is loading the nib, and the view then tries to figure out where the data should come from, and apparently has a fallback to some Interface Builder specific code that explodes?

*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[NSOutlineView ibIsInDesignMode]: unrecognized selector sent to instance 0x400429e40'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff859eb286 __exceptionPreprocess + 198
	1   libobjc.A.dylib                     0x00007fff8298ad5e objc_exception_throw + 43
	2   CoreFoundation                      0x00007fff85a774ce -[NSObject doesNotRecognizeSelector:] + 190
	3   CoreFoundation                      0x00007fff859d8133 ___forwarding___ + 371
	4   CoreFoundation                      0x00007fff859d7f48 _CF_forwarding_prep_0 + 232
	5   AppKit                              0x00007fff83f571e1 -[NSTableView(NSTableViewViewBased) _isInDesignMode] + 38
	6   AppKit                              0x00007fff83ef0d51 -[NSTableView(NSTableViewViewBased) _hasDelegateSupportOrArchivedViews] + 77
	7   AppKit                              0x00007fff83f5718a -[NSTableView(NSTableViewViewBased) shouldUseViews] + 16
	8   AppKit                              0x00007fff83f570d1 -[NSTableView _updateRowData] + 25
	9   AppKit                              0x00007fff83f56ba5 -[NSTableView _commonTableViewInit] + 799
	10  AppKit                              0x00007fff83f555e9 -[NSTableView initWithCoder:] + 2711
	11  AppKit                              0x00007fff8409eada -[NSOutlineView initWithCoder:] + 54
	12  Foundation                          0x00007fff8e25286b _decodeObjectBinary + 2860
... etc ...

After this, XCode appears to be in a bad state and throws more exceptions, first two of these:

ASSERTION FAILURE in /SourceCache/IDEKit/IDEKit-961/Framework/Classes/Editor/IDEEditorDocument.m:455
Details:  (fileURL) should not be nil.
Object:   <IBCocoaDocument: 0x402c76040>
Method:   -fileNameExtensionForType:saveOperation:
Thread:   <NSThread: 0x40010a220>{name = (null), num = 1}

Then a dialog says:

The document “Untitled” could not be autosaved. -[__NSCFSet addObject:]: attempt to insert nil

Google has nothing. Anyone seen this before?

Regards,
Mikkel
_______________________________________________

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


  • Follow-Ups:
    • Re: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: copy & isEqual nightmares
  • Next by Date: Re: How can I detect a mouse click outside a child window on Leopard?
  • Previous by thread: iPad 5.0 Simulator problem
  • Next by thread: Re: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)
  • Index(es):
    • Date
    • Thread