• 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
Problem with Bindings, Core Data, Data Model, NSPathControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with Bindings, Core Data, Data Model, NSPathControl


  • Subject: Problem with Bindings, Core Data, Data Model, NSPathControl
  • From: Keith Lander <email@hidden>
  • Date: Sun, 14 Dec 2008 17:59:30 +0000

I am fairly new to Cocoa (but not programming). I have a data model containing an entity with a String attribute representing a path to a folder. I am trying to use IB to bind an NSPathControl widget to the attribute in the window controller. I assume I need a value transformer to convert NSURL to String and back. I have written a crude one to do this, but it fails. In IB I have set the content path to the attribute name and the value transformer to the name of the transformer class. When I run the app the transformer is called during initialisation, but the value passed is an instance of NSCVString, which makes no sense to me.

Has anyone any idea what could be wrong or could point me to a tutorial that deals with this.

Cheers
Keith
_______________________________________________

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: Problem with Bindings, Core Data, Data Model, NSPathControl
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Unexpected behaviour with autorelease pool
  • Next by Date: Re: Unexpected behavior with autorelease pool
  • Previous by thread: Re: Unexpected behaviour with autorelease pool
  • Next by thread: Re: Problem with Bindings, Core Data, Data Model, NSPathControl
  • Index(es):
    • Date
    • Thread