NSLevelIndicator Bindings Crash

2009-03-21 Thread Walker Argendeli
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 stepp

Re: NSLevelIndicator Bindings Crash

2009-03-22 Thread Richard Somers
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

Re: NSLevelIndicator Bindings Crash

2009-03-23 Thread Walker Argendeli
I did some more looking and determined that it should be Item.selection.priority When i do this, however, every time I switch back to another item, the level defaults back to 1. Also, I checked that chapter in Hillegass's book, and it had an example where it used Car.selection.condition, so

Re: NSLevelIndicator Bindings Crash

2009-03-23 Thread Keary Suska
On Mar 23, 2009, at 1:13 PM, Walker Argendeli wrote: When i do this, however, every time I switch back to another item, the level defaults back to 1. Also, I checked that chapter in Hillegass's book, and it had an example where it used Car.selection.condition, so it seems that selection i

Re: NSLevelIndicator Bindings Crash

2009-03-23 Thread Walker Argendeli
Yes, you're right, Item is an NSArrayController representing the entity "Item". Sorry about that. ItemsList is an Entity and Array Controller representing an outline view of folders. Each folder can have multiple Items in it. Depending on which folder is selected in the ItemsList outline v

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Keary Suska
On Mar 23, 2009, at 2:04 PM, Walker Argendeli wrote: Yes, you're right, Item is an NSArrayController representing the entity "Item". Sorry about that. ItemsList is an Entity and Array Controller representing an outline view of folders. Each folder can have multiple Items in it. Dependin

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Walker Argendeli
I'm sorry for the trouble I'm giving you explaining this. The "Item.selection.priority" keypath indicates that you are referencing the key "Item" of the array controller (as you describe). How is that key defined? I'm binding to the array controller called Item, which contains entities of t

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Kyle Sluder
On Tue, Mar 24, 2009 at 2:52 PM, Walker Argendeli wrote: >> The "Item.selection.priority" keypath indicates that you are referencing >> the key "Item" of the array controller (as you describe). How is that key >> defined? > > I'm binding to the array controller called Item, which contains entities

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Ron Lue-Sang
On Mar 24, 2009, at 11:52 , Walker Argendeli wrote: I'm sorry for the trouble I'm giving you explaining this. The "Item.selection.priority" keypath indicates that you are referencing the key "Item" of the array controller (as you describe). How is that key defined? I'm binding to the array

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Ron Lue-Sang
On Mar 24, 2009, at 13:43 , Dave Keck wrote: You're binding a levelIndicator? The LevelIndicator's value binding is "read-only". That's why it looks like you've changed the value, but you really haven't. The rest of your setup sounds correct. The docs: http://developer.apple.com/documenta

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Dave Keck
> You're binding a levelIndicator? The LevelIndicator's value binding is > "read-only". That's why it looks like you've changed the value, but you > really haven't. The rest of your setup sounds correct. The docs: http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsT