• 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: Cocoa Bindings & different nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Bindings & different nibs


  • Subject: Re: Cocoa Bindings & different nibs
  • From: Keary Suska <email@hidden>
  • Date: Mon, 09 Oct 2006 08:54:26 -0600
  • Thread-topic: Cocoa Bindings & different nibs

on 10/9/06 2:53 AM, email@hidden purportedly said:

> What I wanna do is, if either the outlineview or the custom view is
> selected, change the subviews of the inspectorview. The subviews of
> the inspectorview are made in separate nibs, which are then loaded by
> my InspectorController.
> I would like to use bindings to populate each of the GUI elements of
> these subviews. So for instance if I click on the custom view and a
> rectangle is selected, I would tell the InspectorController to add
> the subview that has all the properties I can change for this
> rectangle and somehow tell bindings that the selection has been
> changed so the subview gets populated.

With this setup you will have to bind to or through the InspectorController,
which should be the file's owner of the separate nibs. When a nib is loaded
(note: *loaded* but not necessarily displayed), all of the bindings will
automatically trigger. After that point, as long as you are changing values
in a KVO/KVC compliant manner, the bindings will sync properly.

A word of advice: you will probably run into less problems and headaches if
you keep the inspector view and all the subviews in a single nib.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


 _______________________________________________
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: 
 >Cocoa Bindings & different nibs (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: delegate question
  • Next by Date: Strange error with KHTML?!
  • Previous by thread: Cocoa Bindings & different nibs
  • Next by thread: Control+tab event issue
  • Index(es):
    • Date
    • Thread