• 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
Bindings trouble.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings trouble.


  • Subject: Bindings trouble.
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 21 Sep 2005 18:27:53 -0500

(resending due to my failure to add a subject)

I'm having trouble trying to use bindings in an inspector. The problem is that the objects I'm trying to inspect are different classes. But I'd like to have the control apply to the objects in the selection that it knows how to deal with and ignore the others. Example:

Selection contains: Foo 1, Foo 2, Bar 1, Baz 3
Control should bind to the lineColor key, which Foo and Bar implement, but Baz does not.
If the Foos and the Bar have the same value for lineColor, the control shows that value.
If the user picks a new color, the Foos and the Bar receive a setLineColor message and the Baz is ignored.


Is this possible?

Thanks,
Glen

_______________________________________________
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: Of input loops and games
  • Next by Date: Re: How do I create a file name with a "/" in it?
  • Previous by thread: compiler error for NSValueTransformer subclass
  • Next by thread: obj-c: how do i call an instance method in my super's super?
  • Index(es):
    • Date
    • Thread