data-model

Manual Core Data schema migration without "document changed" warning?

The data model for my Core Data document-based app (10.5 only) is in a framework, so automatic schema upgrades using a Core Data mapping model don't appear to work. It appears that the Core Data machinery doesn't find the appropriate data models or mapping model when they are not in the app's main bundle. So, instead of using the automat...

implementing core data to an existing iPhone-project

Hi Folks, I´ve some trouble with implementing Core Data to my existing iPhone-Project. First I wanna give you a more detailed view on it: Some of my classes are nested into each other: The class "Game" has an NSArray with objects of class "Player", the class "Player" has an NSArray with objects of class "Item" in turn. What I wanna do...

Vaadin and DataModel. How can i get the value stored by a Property DataModel implementation used by a Label Field ??? Vaadin

Hi, It is just a simple TEST application import br.com.elf.ui.IndexApplication; public class IndexApplication extends Application { public void init() { setMainWindow(getStartUpWindow()); } private Window getStartUpWindow() { Window mainWindow = new Window(); mainWindow.addComponent( ...

iPhone: How I can Access Data in a View Controller Class from Another Controller Class?

Hey , In my application I have one Entry form in which there are six Text fields Name :UITextField Date of Birth :UITExtField Age:UITextField Address :UITextField Phone No :UITextField Image : UIIMageView Now What I want is that I want all these fields value in the same fields of other ViewController class. How it could be possible ...

Column-family concept and data model

I'm investigating the different types of NoSQL database types and I'm trying to wrap my head around the data model of column-family stores, such as Bigtable, HBase and Cassandra. First model Some people describe a column family as a collection of rows, where each row contains columns [1], [2]. An example of this model (column families ...

Why custom types accept ad-hoc attributes in Python (and built-ins don't)?

Hi there! I'd like to know why one is able to create a new attribute ("new" means "not previously defined in the class body") for an instance of a custom type, but is not able to do the same for a built-in type, like object itself. A code example: >>> class SomeClass(object): ... pass ... >>> sc = SomeClass() >>> sc.name = "AAA"...

Smart pointers, or "better" destructor

Which type of the smart pointer (shared, scoped) would be for such a data structures the most suitable... Structure 1: //Class with cross-references to points p1, p2 class PointTopo { private: double x, y; PointTopo * p1; PointTopo * p2; public: PointTopo(double xx, double yy): x(xx), y(yy) {this-> p1 = NULL; this->p...

How to maintain an ordered table with Core Data (or SQL) with insertions/deletions?

This question is in the context of Core Data, but if I am not mistaken, it applies equally well to a more general SQL case. I want to maintain an ordered table using Core Data, with the possibility for the user to: reorder rows insert new lines anywhere delete any existing line What's the best data model to do that? I can see two wa...