• 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
Bindings - accessing the model from a seperate window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings - accessing the model from a seperate window


  • Subject: Bindings - accessing the model from a seperate window
  • From: Dan Price <email@hidden>
  • Date: Fri, 13 Jan 2006 14:23:40 +0000 (GMT)

I'm really stuck and need some help. I have this
multi-document application and a single inspector
palette which displays the properties and settings of
the selection in the main window. There is only one
instance of this utility panel, and as the user
closes/switches between documents and selections, the
content of the inspector must be updated. This is
currently handled by the inspector's
NSWindowController subclass.

When the controller subclass recieves a notification
from the model, it asks the NSApp object for it's
delegate. My NSApp delegate contains a pointer to the
current document model and the controller uses this
link to update it's outlets. But this is a lot of code
for a lot of outlets and I want to use bindings
instead.

The problem is I can't come up with a key-string which
works. I have an NSController object in the palette
nib, but I'm not sure what I should be using for it's
Content outlet. Can anyone point me in the right
direction? I can get bindings working when the
NSController is in the same nib as the Model, no sweat.



___________________________________________________________
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
 _______________________________________________
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

  • Follow-Ups:
    • Re: Bindings - accessing the model from a seperate window
      • From: Volker Runkel <email@hidden>
    • Re: Bindings - accessing the model from a seperate window
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: NSDate, NSDateFormatter, and NSDatePicker
  • Next by Date: Ligatures - or more so not ligatures
  • Previous by thread: Re: NSDate, NSDateFormatter, and NSDatePicker
  • Next by thread: Re: Bindings - accessing the model from a seperate window
  • Index(es):
    • Date
    • Thread