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: Jeff Laing <email@hidden>
- Date: Fri, 3 Dec 2004 20:00:11 +1100
> > I'm not saying "I want to do it with code". I'm saying "I
> want it to
> > be
> > verifiable by eye", by code inspection.
>
> % nibtool -a fileName.nib
>
> mmalc
You have to laugh because otherwise you'd cry.
The man page for nibtool says "the output is in plist format"
So, I whip up a quick tool to dump it out:
plistData = [NSData dataWithContentsOfFile:@"HexWindow.asc"];
plist = [NSPropertyListSerialization propertyListFromData:plistData
mutabilityOption:NSPropertyListImmutable
format:&format
errorDescription:&error ];
if(!plist) {
NSLog(error);
[error release];
} else {
NSLog(@"plist %@",plist);
[plist release];
}
and of course it outputs:
2004-12-03 19:45:40.651 NibViz[627] CFLog (0):
CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon
in dictionary.
2004-12-03 19:45:40.660 NibViz[627] XML parser error: Unexpected character
/ at line 1Old-style plist parser error: Missing ';' on line 90
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.
_______________________________________________
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