• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSLevelIndicator Bindings Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLevelIndicator Bindings Crash


  • Subject: Re: NSLevelIndicator Bindings Crash
  • From: Walker Argendeli <email@hidden>
  • Date: Mon, 23 Mar 2009 15:13:09 -0400

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 it seems that selection is the right controller key. The bindings in general are just really funky. I added a stepper and textbox in addition to the level indicator, and bound them to Item.selection.priority, and they too default back to 1 (the default value) every time I go to another item. The Item array controller's Content Set is bound to ItemsList.selection.Item That's the only binding, other than the managed object context. I really can't figure out what's causing this problem, which is annoying because I'm trying to focus on fixing this before I continue development.


Thanks,
- Walker Argendeli

On Mar 22, 2009, at 10:05 AM, Richard Somers wrote:

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


  • Follow-Ups:
    • Re: NSLevelIndicator Bindings Crash
      • From: Keary Suska <email@hidden>
References: 
 >NSLevelIndicator Bindings Crash (From: Walker Argendeli <email@hidden>)

  • Prev by Date: Re: OpenGL Prog Guide for OSX - override initWithFrame
  • Next by Date: Re: MacRoman -> UTF8 [solved]
  • Previous by thread: Re: NSLevelIndicator Bindings Crash
  • Next by thread: Re: NSLevelIndicator Bindings Crash
  • Index(es):
    • Date
    • Thread