But if I change it to @"selection.number", it throws the exception:
"[<NSTreeController 0x1722e0> valueForUndefinedKey:]: this class is
not key value coding-compliant for the key selection.number."
From reading the docs:
"NSObjectController and its subclasses implement the selection method.
This method returns a proxy object that represents the receiver’s
current selection. The proxy is fully key-value-coding compliant.
When you request a key’s value from the selection proxy it returns the
value, or a selection marker. Placeholder markers provide additional
information about the selection. There are three placeholder markers
defined in the NSPlaceholders informal protocol:"
It seems that I should be able to get the number from the selection,
but instead I get the exception:
"[<NSTreeController 0x170c60> valueForUndefinedKey:]: this class is
not key value coding-compliant for the key selection.number."
I feel like I should be able to get the number. Elsewhere I read that
I would get an array of numbers. What am I doing wrong?
TIA,
--
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com