Re: NSLevelIndicator Bindings Crash
Re: NSLevelIndicator Bindings Crash
- Subject: Re: NSLevelIndicator Bindings Crash
- From: Richard Somers <email@hidden>
- Date: Sun, 22 Mar 2009 09:15:01 -0600
On Mar 21, 2009, at 3:41PM, Walker Argendeli wrote:
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?
Cocoa Programming for Mac OS X Third Edition by Arron Hillegass
Chapter 11, Basic Core Data, pages 171-182 has a NSLevelIndicator.
This chapter might shed some light on your problem.
Richard
_______________________________________________
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