Binding to a non-compliant property
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