• 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 & Bindings: Non-string types in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data & Bindings: Non-string types in an NSTableView


  • Subject: Core Data & Bindings: Non-string types in an NSTableView
  • From: "Kevin Hoffman" <email@hidden>
  • Date: Wed, 18 Apr 2007 08:55:51 -0400
  • Thread-topic: Core Data & Bindings: Non-string types in an NSTableView

Folks,

  I'm sure this qualifies as a "newbie" question, but I'll ask anyway. I
was looking at the videos of the Core Data tutorial and I noticed that
none of the tabular items being bound were anything but strings.



I have a situation where I have an entity that has a Date column and an
Int32 column. I set up the bindings using Core Data, set up a controller
- everything works fine when I set the data types to string. However,
when I set the data types in the model to what they should be, I keep
getting errors from the GUI indicating that it was an inappropriate type
(e.g. "string" when expecting an NSCFDate etc).



I have tried dragging a datepicker cell into the cell in the tableview,
but that doesn't quite do the trick. Also, I can't figure out how to
deal with the cell that I want to allow me to enter integers. I type in,
say, "200", then hit tab to commit that cell, and then I see the error
in the Console log showing that it got the string "200" instead of the
number 200.



I'm sure there's a simple solution to this - can anyone tell me what
step I'm missing to get my table to allow me to pick dates (hopefully
from a pop-up calendar, or at least default to today's date) and enter
numbers directly into the table?



Thanks,

                Kevin

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Core Data & Bindings: Non-string types in an NSTableView
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • Next by Date: Re: Core Data & Bindings: Non-string types in an NSTableView
  • Previous by thread: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • Next by thread: Re: Core Data & Bindings: Non-string types in an NSTableView
  • Index(es):
    • Date
    • Thread