NSLevelIndicator Bindings Crash
NSLevelIndicator Bindings Crash
- Subject: NSLevelIndicator Bindings Crash
- From: Walker Argendeli <email@hidden>
- Date: Sat, 21 Mar 2009 17:41:52 -0400
I'm using Core Data, and I have an entity; we'll call it "Item". It
has an attribute called "priority". In the xib, I have an
NSLevelIndicator and NSStepper. I have a NSTableView full of
"Items". Depending on which item is selected in the table view, I
want the level indicator and stepper to display the right values, and
for me to be able to set them to a certain value for each item. There
are 2 problems: If I bind the value of either one to
Item.arrangedObjects.priority, the app throws an exception, whereas if
I bind to Item.selection.priority, the controls don't set each item's
priority individually. What should I bind to?
Secondly, an NSLevelIndicator wants a float for its value, whereas an
NSStepper wants a double for its value. Which should I set it to in
the core data model?
Thanks,
- Walker Argendeli
_______________________________________________
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
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden