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

Re: Binding/KVO question


  • Subject: Re: Binding/KVO question
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Wed, 03 Dec 2008 17:39:43 -0500

Well I'm trying to declare an outlet to my app controller in my custom view but as soon as I added it, the app wouldn't build anymore... (I get 2 errors, one where AppController declares an outlet to my custom view, and one where my custom view declares an outlet to my AppController)

Not sure why... there's no specific error messages (just "Syntax Error before AppController" and "Syntax Error before CustomView"


On 3-Dec-08, at 5:26 PM, Keary Suska wrote:


On Dec 3, 2008, at 2:35 PM, Jean-Nicolas Jolivet wrote:

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?

Yes.

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!


Yes. Since they are in the same nib, why not set an outlet to AppController?

HTH,

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


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: Keary Suska <email@hidden>
References: 
 >Binding/KVO question (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Binding/KVO question (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Writing Array of Dictionaries to Defaults (CFPreferences)
  • Next by Date: Re: Special Characters Edit Menu Item
  • Previous by thread: Re: Binding/KVO question
  • Next by thread: Re: Binding/KVO question
  • Index(es):
    • Date
    • Thread