Re: more nib problems
Re: more nib problems
- Subject: Re: more nib problems
- From: Vince DeMarco <email@hidden>
- Date: Sun, 10 Jun 2001 19:09:50 -0700
On Sunday, June 10, 2001, at 06:11 PM, Rand wrote:
I have a document based cocoa app with a corrupted
MyDocument.nib. I don't know how it happened, but
when starting the app it does not open up an untitled
doc. When opening the MyDocument.nib from
ProjectBuilder, an alert panel comes up with the message:
"No integral rectangles found". Any ideas how to
fix this nib?
Just resave the document in Interface Builder, if the problem persists,
then its a problem with Interface Builder and you can just ignore it.
When IB loads in a document it makes sure all of the views in the
document fall on integral boundaries, the code we added to IB was a bit
to vigorous and tried to fix all of the non-integral rects, when it
should have left some of them alone.
You can ignore the message. Sorry about this, this problem has been
fixed.
When you open the file in IB could you please startup the Console
application /Applications/Utilities/Console and cut and paste the
messages that IB prints out there an email them to me.
the messages should look something like this:
2001-06-10 19:06:18.495 Interface Builder[7220] <NSTextField: 0x25c7160>
orig rect {{46, 115}, {70.1094, 15}} integral rect {{46, 115}, {71, 15}}
I'm guessing that IB is complaining about a view in a scrollview, and
that view has non integral rects.
If you look above the original rectangle of the NSTextField (above) was
x:46, y: 115 width: 70.1094 height:15
and the new rectangle becomes
x:46, y: 115 width: 71 height:15
Notice that the textfield is now on an integral boundary on the screen.
vince