• 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
core data - problem with NSPopupButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

core data - problem with NSPopupButtonCell


  • Subject: core data - problem with NSPopupButtonCell
  • From: Pavel Hlavnicka <email@hidden>
  • Date: Thu, 01 Jun 2006 20:01:40 +0200

Hi all,

I've problem as follows, looks like a bug, but usually it's not :)

- I have a core data entity with an integer value

- in UI I want to have NSPopuppButton to edit it and display some human readable value

- to achieve this I have a property file with enumerations (see example)

- in runtime I parse this property file and bind it to
  NSObjectController

- for NSPopupButton I set content contentObjects contentValues to array
  controller bound to NSObjectController (all to arangedObjects)

- selectedObejct is bound to array controller for the entity (selection)


So far so good... but is stops working as I try to use the same in NSTableView with colum enhanced with NSPopupButtonCell.


As soon as I do this (and I change selectedObject binding from selection to arrangedObjects) it sopos to work and I see an excetion telling that [NSNumber] does not support key-value coding for "value" - what is the name of non-core data controller used for contentValues binding.

Sample code is available here:

http://termit.gingerall.cz/~pavel/cocoa/coreissue.tar.gz

Current code is broken, just remove "type" column from NSTableView or unbound it and it works with simple NSPopupButton.

Thanks in avance for any explanation.

P.


-- Pavel Hlavnicka Ginger Alliance www.gingerall.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: NSDocument - preventing incomplete document from being saved
  • Next by Date: Re: Putting object references into Pasteboard for Drag And Drop
  • Previous by thread: Re: NSDocument - preventing incomplete document from being saved
  • Next by thread: Re: Putting object references into Pasteboard for Drag And Drop
  • Index(es):
    • Date
    • Thread