• 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
nsarraycontroller, binding and plugin protocols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nsarraycontroller, binding and plugin protocols


  • Subject: nsarraycontroller, binding and plugin protocols
  • From: Ryan Glover <email@hidden>
  • Date: Tue, 11 Apr 2006 23:22:48 -0400

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:
This email sent to email@hidden


  • Prev by Date: Re: Custom Views
  • Next by Date: Getting text caret location in screen coordinate
  • Previous by thread: Re: icons in tabs
  • Next by thread: Getting text caret location in screen coordinate
  • Index(es):
    • Date
    • Thread