Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nsarraycontroller, binding and plugin protocols



Hello,

Thanks to help from this forum I have developed a simple plugin system that uses a formal protocol. In my main application I am creating an array of objects of different classes that all implement the protocol. One pair of methods common to all the objects (and in the protocol) is name and setName. I want to display the name of each object in an NsTableView. I approached the problem by creating an NsArrayController in IB and creating a key for name. In the inspector I set the object class name to the name of the header file containing my protocol. I set the bindings in the NsTableView as I would for a 'regular' NsArrayController. When I fire up the application I am told that the class is not key value coding compliant for the key I defined. Is it a problem to use a protocol file as the object class name? Is there another way to approach this? Would switching to an informal protocol help?

Thank you,
Ryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.