• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSControl/NSCell: archiving vs. bindings and target/action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Aussie Mac Developers at WWDC?
  • Next by Date: Re: Checkbox in NSOutlineView. Must move mouse > 3 pixels to toggle
  • Previous by thread: NSControl/NSCell: archiving vs. bindings and target/action
  • Next by thread: Cocoa Network + SSL
  • Index(es):
    • Date
    • Thread