• 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
IB corrupts XIB when setting NSPredicateEditor->Rows binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IB corrupts XIB when setting NSPredicateEditor->Rows binding


  • Subject: IB corrupts XIB when setting NSPredicateEditor->Rows binding
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 30 Oct 2008 18:52:55 -0700

Hello List,

IB reliably trashes an XIB file as soon as you set the Rows binding of an NSPredicateEditor. Save the XIB and try opening it again, you're greeted with this message:

-----
The document "predicateEditorTest.xib" could not be opened. Operation could not be completed. (com.apple.InterfaceBuilder error -1.) Check the console log for additional information.
-----


The console logs these errors:

-----
10/30/08 6:11:20 PM Interface Builder[301] Exception raised while decoding document objects - [<NSCustomObject 0x194b5120> valueForUndefinedKey:]: this class is not key value coding-compliant for the key somePath.
-----


After dismissing the error message more errors are logged:

-----
10/30/08 6:11:38 PM Interface Builder[339] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: IBObjectsWithInvalidWarnings)


10/30/08 6:11:38 PM Interface Builder[339] An instance 0x19407df0 of class NSCustomObject is being deallocated while key value observers are still registered with it. Observation info is being leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info:
<NSKeyValueObservationInfo 0x18efb010> (
<NSKeyValueObservance 0x19400150: Observer: 0x19404b80, Key path: somePath, Options: <New: YES, Old: YES, Prior: NO> Context: 0x93d861a8, Property: 0x19400130>
)


10/30/08 6:11:38 PM Interface Builder[339] *** Assertion failure in - [NSWindowGraphicsContext reenableFlush], /SourceCache/AppKit/ AppKit-949.35/GraphicsContext.subproj/NSWindowGraphicsContext.m:147

10/30/08 6:11:38 PM Interface Builder[339] Invalid parameter not satisfying: _flushDisableCount > 0
-----


Steps to recreate are quite simple:

1) Create a new Cocoa Window XIB
2) Drop an NSPredicateEditor
3) Focus the Predicate Editor and set the "Rows" binding.
4) Save and Close the XIB
5) Open the saved file

Also, after that IB is in an unstable state and needs to be restarted. Setting the "Value" binding doesn't corrupt the XIB.

I'm using Xcode 3.1.1 (with iPhone SDK installed) on Mac OS X 10.5.5

Is this known?

Regards
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: IB corrupts XIB when setting NSPredicateEditor->Rows binding
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: PackageMaker 3.0.2 and scripts
  • Next by Date: Localization of Cocoa-Xib for a Newbie
  • Previous by thread: RE: PackageMaker 3.0.2 and scripts
  • Next by thread: Re: IB corrupts XIB when setting NSPredicateEditor->Rows binding
  • Index(es):
    • Date
    • Thread