• 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
Binding/KVO question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding/KVO question


  • Subject: Binding/KVO question
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Wed, 03 Dec 2008 16:35:51 -0500

This might be an obvious question but I don't think I've ever had to do it...I'll try to keep the example as simple as possible:

I have 2 classes;

An AppController with a bunch of properties (lets say propA, probB and probC, all integers) that are bound to my main window's controls... (all sliders..) when the main windows sliders are changed, the properties of AppControllers are changed...

In the same NIB file I have a second window with a custom view inside (Let's call it MyCustomView, in MySecondWindow) is there a way for MyCustomView to have properties that will be bound to my AppController's propA, propB and propC so that MyCustomView is also notified when those properties are changed?

I am reading on Key-Value observing right now but it seems like if I want to add an observer on my AppController's properties in my CustomView's code I would need an instance to my AppController, which I haven't!

(both MySecondWindow and MyCustomView are outlets of my AppControllers...)

I'm sure there is an obvious way of doing it but right now I just can't see it...

Any help would be appreciated...

Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Binding/KVO question
      • From: "Kyle Sluder" <email@hidden>
    • Re: Binding/KVO question
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Determining unreleased objects after Quit
  • Next by Date: Setting NSTableView column header with Cocoa bindings
  • Previous by thread: [MEET] CocoaHeads Mac Developer Meetings
  • Next by thread: Re: Binding/KVO question
  • Index(es):
    • Date
    • Thread