Re: Swapping isa's (was Re: Hex Edit controls (resknife))
Re: Swapping isa's (was Re: Hex Edit controls (resknife))
- Subject: Re: Swapping isa's (was Re: Hex Edit controls (resknife))
- From: Darkshadow <email@hidden>
- Date: Fri, 3 Dec 2004 09:33:58 -0500
On Dec 3, 2004, at 4:00 AM, Jeff Laing wrote:
[snip]
and when I look in the ascii output, what do I see but:
textColor = "NSNamedColorSpace System textColor";
textStorage = "00000000:{
NSColor = NSNamedColorSpace System textColor; NSFont = "CGS
Courier
12.00 pt. P [] (0x003a0180) fobj=0x00375b30, spc=7.20";
NSParagraphStyle
= Alignment 0, LineSpacing 0, ParagraphSpacing 0,
ParagraphSpacingBefore 0,
HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0,
LineHeightMultiple 0, LineBreakMode 0, Tabs (28L, 56L, 84L, 112L, 140L,
168L, 196L, 224L, 252L, 280L, 308L, 336L), DefaultTabInterval 0;}";
usesFindPanel = "0";
Yes, "nibtool" clearly doesn't handle NSTextView either.
(I'm assuming that the actual problem is more likely to be in some
sort of
encoder behaviour inside NSTextView)
Once again, can someone confirm for me that nibtool is not broken - as
has
been suggested earlier, this really is screaming something wrong with
my
system, not just the developer tools.
It looks like it doesn't handle the textStorage section. If that's
exactly how nibtool is outputting it, then it looks like it's not being
set right somehow. Anyway, I have a subclassed NSTextView in one of my
nibs; here's how nibtool's output looks for it:
"Object 275" = {
Class = "NSTextView";
CustomClass = "DSTextView";
Name = "NSTextView";
allowsDocumentBackgroundColorChange = "0";
allowsUndo = "0";
autoresizingMask = "18";
backgroundColor = "NSCalibratedWhiteColorSpace 1 1";
continuousSpellCheckingEnabled = "1";
drawsBackground = "1";
editable = "0";
focusRingType = "0";
frameRect = "{{0, 0}, {405, 240}}";
groupedIBObjectID = "<null>";
importsGraphics = "1";
isHidden = "0";
isLockedIBObject = "0";
richText = "1";
selectable = "0";
textColor = "<null>";
textStorage = "";
usesFindPanel = "0";
};
...and I don't have any problems with it. It looks (to me) like the
parser is barfing when it hits the textStorage part of your output.
That's definitely not the right format, it should look something more
like this (note, I'm not saying this is what it *should* be, just that
this is the right format):
textStorage = {
NSColor = "NSNamedColorSpace System textColor";
NSFont = "CGS Courier 12.00 pt. P [] (0x003a0180) fobj=0x00375b30,
spc=7.20";
NSParagraphStyle = {
Alignment = 0;
LineSpacing = 0;
ParagraphSpacing = 0;
ParagraphSpacingBefore = 0;
HeadIndent = 0;
TailIndent = 0;
FirstLineHeadIndent = 0;
LineHeight = "0/0";
LineHeightMultiple = 0;
LineBreakMode = 0;
Tabs = (28L, 56L, 84L, 112L, 140L, 168L, 196L, 224L, 252L, 280L,
308L, 336L);
DefaultTabInterval = 0;
};
};
Don't know if any of this is going to help you, but hopefully it gives
you a direction to look in.
Darkshadow (aka Mike Nickerson)
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden