Re: NSControl/NSCell: archiving vs. bindings and target/action
Re: NSControl/NSCell: archiving vs. bindings and target/action
- Subject: Re: NSControl/NSCell: archiving vs. bindings and target/action
- From: "Ken Ferry" <email@hidden>
- Date: Mon, 31 Jul 2006 22:20:45 -0700
Hi Jim,
On 7/30/06, Jim Correia <email@hidden> wrote:
Does the documentation discuss what specifically happens to bindings
and target/action of an NSControl or an NSCell as it is round tripped
through NSKeyedArchiver?
Not that I can remember.. file bugs, please?
Absent that, would someone be kind enough to confirm or correct these
observations?
Bindings don't appear to survive the round trip through the archive.
The target is conditionally encoded, so it's survival depends upon
whether the target object was included in the archive.
Correct on all counts.
If you do need to duplicate view hierarchies with bindings intact,
you're best off instantiating a nib multiple times. Failing that, you
can use exposedBindings and infoForBinding: to get bindings
information, and -bind:toObject:withKeyPath:options: to set the
gathered information on new objects.
-Ken
_______________________________________________
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