objective c - Observe property of a custom view from Window Controller in Cocoa KVO -


this hierarchy of application, need observe property:

objecta    |    |-----windowcontrollera (nswindowcontroller)               |               |-------content(nswindow)                           |                           |--------contentview (custom nsview)                                          |                                          |---- propertyx (property observe) 

i try observe objecta code: [self.windowcontrollera addobserver:self forkeypath:@"self.content.contentview.property" options:nskeyvalueobservingoptionold context:@"context"];

but doesn't work, error : was sent object not kvc-compliant "content" property.

what have observe propertyx objecta ?

i found problem! this's right path "window.contentview.property"


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -