• 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
Cocoa bindings and a custom view...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa bindings and a custom view...


  • Subject: Cocoa bindings and a custom view...
  • From: Jiva DeVoe <email@hidden>
  • Date: Wed, 19 Jan 2005 20:17:22 -0700

I have a custom view and an nsarraycontroller which I have attached to instance variables in my NSDocument subclass like so:

IBOutlet MyView *view;
IBOutlet NSArrayController *controller;

In my awakeFromNib function, I am attempting to bind the "foo" attribute of my view to the selected object in the array controller using the following call:

[view bind:@"foo" toObject:controller withKeyPath:@"selection" options:nil];

foo does have apropriate KVC accessors.

When this line executes, I get the following error:

2005-01-19 20:10:41.389 TestProject[457] *** -[_NSControllerObjectProxy copyWithZone:]: selector not recognized

What am I doing wrong?


-- Jiva DeVoe jiva at devoesquared.com http://www.devoesquared.com

_______________________________________________
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


  • Follow-Ups:
    • Re: Cocoa bindings and a custom view...
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Writing a method like "sharedApplication"
  • Next by Date: Re: Why do "loose" nibs take precedence over nibs in .lproj?
  • Previous by thread: Re: Writing a method like "sharedApplication"
  • Next by thread: Re: Cocoa bindings and a custom view...
  • Index(es):
    • Date
    • Thread