Hi Quincey
> You need to clarify your thinking. What you want (it appears) is a KVO
> derived property in a certain class -- in this case, one whose value is
> dependent on a property in a different class.
Actually, I don't really want a "dependent" property. All I want is a way to be
able to pass a property on the main controller class to each of three derived
array controllers, so that they can use that value to set a property on every
new item added to the array controller.
At the moment, I am manually passing the value to each of the array controllers
in the windowControllerDidLoadNib: method of the main controller.
This is fine but, since I will need to do the same thing in other scenarios, I
wanted to create a derived array controller component that I could add to a NIB
and setup in IB, rather than having to write the hookup code every time.
- (void)windowControllerDidLoadNib:(NSWindowController *)windowController
{
[super windowControllerDidLoadNib:windowController];
[myExtendedArrayController setExtraProperty:[self extraProperty]];
...
}
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]