Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSControl/NSCell: archiving vs. bindings and target/action



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSControl/NSCell: archiving vs. bindings and target/action (From: Jim Correia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.