• 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
Binding to a non-compliant property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding to a non-compliant property


  • Subject: Binding to a non-compliant property
  • From: Daniel Jalkut <email@hidden>
  • Date: Wed, 20 Apr 2005 11:57:34 -0700


I'm binding a pop up control's content to an array of NSSound names, and binding the selected object by referring to an NSSound's "name" property. This works great, but it has the unwanted side-effect of a console message being printed about the incompatibility of NSSound's "setName" method because it doesn't return void.


What's the best way to work around this problem? I've quieted the warning by adding support for a "boundName" property in a category of NSSound. Now if I only bind to boundName and make sure I always use setBoundName to get at the sound's name, I'll be in business. I'd prefer it if there was some way to get the KVO to work on the sound't "name" property even though the setName: method isn't compliant. Any ideas?

Daniel

_______________________________________________
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: Printing issues
  • Next by Date: Re: Feature suggestions for easier debugging of Cocoa Bindings.
  • Previous by thread: Re: Printing issues
  • Next by thread: NSTextView and layout manager or cells - how to be most efficient?
  • Index(es):
    • Date
    • Thread