Re: NIB tools
Re: NIB tools
- Subject: Re: NIB tools
- From: Ricky Sharp <email@hidden>
- Date: Sun, 4 Dec 2005 19:10:50 -0600
On Dec 4, 2005, at 6:31 PM, Andrew Merenbach wrote:
There's nibtool, accessible through Terminal, which has some repair
and listing/dumping features, but whose man page doesn't list
bindings as amongst the items dumped. I have not tested it on a
nib with bindings to see whether it might fulfil your needs.
nibtool displays bindings in the 'Connection' data it produces.
For example,
"Connection 3650" = {
Binding = "currentValue_II";
Class = "NSNibBindingConnector";
Controller = "3645";
KeyPath = "selection.minimumSum_II";
Label = "currentValue_II: selection.minimumSum_II";
Object = "3438";
};
You can then look for the Controller and Object via their IDs...
"Object 3645" = {
Class = "NSObjectController";
Name = "Settings Controller";
automaticallyPreparesContent = "0";
entityName = "<null>";
iBDeclaredKeys = "(
"additionMode_II",
"minimumSum_II",
... [long key list snipped] ...
)";
iBNSObjectControllerMode = "0";
iBObjectClassName = "IISettings";
isEditable = "1";
};
"Object 3438" = {
Class = "IIValueField";
autoresizingMask = "0";
continuous = "0";
controlSize = "0";
enabled = "1";
focusRingType = "0";
font = "<null>";
frameRect = "{{172, 76}, {128, 48}}";
groupedIBObjectID = "<null>";
iBBorderType = "0";
isHidden = "0";
isLockedIBObject = "1";
tag = "0";
};
This shows that the currentValue_II attribute of an instance of
IIValueField is bound to the minimumSum_II attribute of an instance
of IISettings.
___________________________________________________________
Ricky A. Sharp
mailto:email@hidden
Instant Interactive(tm)
http://www.instantinteractive.com
_______________________________________________
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
References: | |
| >NIB tools (From: Timothy Reaves <email@hidden>) |
| >Re: NIB tools (From: Andrew Merenbach <email@hidden>) |