Re: Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Kyle Sluder
On Jun 22, 2013, at 7:58 PM, Michael Crawford wrote: > > In less than ten seconds it asked which of four street addresses in > lived at, in Owl's Head, Maine. While I did live in Owl's Head back > in the day, there were very, very few people who knew my street > address. KickStarter also knew

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Reaves, Timothy
What the docs state that is meaningless (although inaccurate); the Objectice-C manual could very easily state that Objective-C is not a programing language; it is. CoreData is a database. A database need never write anything to a file. There are - in fact - several examples, of all manor, of in-

Re: fast search of NSPointerArray

2013-06-22 Thread James Maxwell
It's a mixed graph structure. Basically, I'm storing all unique nodes in an NSMutableArray, then using NSPointerArrays to build the adjacency lists. It works really nicely for learning/building the graph, but it does seem as though searches are a little slower. My guess is that this is because I

Re: fast search of NSPointerArray

2013-06-22 Thread Ken Thomases
On Jun 22, 2013, at 9:56 PM, James Maxwell wrote: > I've recently been working on an optimized version of a pretty complex > project. The big problem before was memory usage, and I'm happy to say that > I've tackled that really well. However, in order to do this I switched from > using NSMutabl

Re: fast search of NSPointerArray

2013-06-22 Thread Michael Crawford
Would the C++ Standard Template Library help? One can compile "Objective-C++" by giving such sources the ".mm" extension. In general there are data structure templates, and algorithm templates - search a vector, search a tree, search a linked list, sort a vector, etc. The algorithms all have spe

Re: fast search of NSPointerArray

2013-06-22 Thread Graham Cox
On 23/06/2013, at 12:56 PM, James Maxwell wrote: > I've thought creating my sparse arrays using NSHashTable (keyed by > NSIntegers) instead of NSPointerArray. Does this seem like a reasonable way > to speed things up? Don't guess: measure. If you can show that your iterators are the culprit

Re: Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Michael Crawford
OK this is really creepy. KickStarter has the reasonable requirement that one verify one's identity. So I entered my first and last name, my real birthday - which I never post online _anywhere_, so as to avoid identity theft, and my present home address, which no one at all knows about because I'

fast search of NSPointerArray

2013-06-22 Thread James Maxwell
Hello All, I've recently been working on an optimized version of a pretty complex project. The big problem before was memory usage, and I'm happy to say that I've tackled that really well. However, in order to do this I switched from using NSMutableDictionaries to sparse NSPointerArrays. On the

Re: Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Michael Crawford
Oopsy-Doodle. I'll look into what Cocotron and GNUStep have done before actually launching my KickStarter Project. Just about their very first requirement is to state one's funding goal and time deadline. I just took a wild guess and specified thirty days, and twenty thousand dollars. That migh

Re: Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Charles Srstka
On Jun 22, 2013, at 8:38 PM, Michael Crawford wrote: > Just now I'm about to register a KickStarter project that would > compensate me for completely reverse-engineering the Core Data > formats. I believe that some of the work on this has been done already; Cocotron and GNUStep both seem to hav

Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Michael Crawford
> To me, it's not that you'd have to write all the code from scratch that makes > Core Data concerning, it's the fact that the format is undocumented. > If Apple published a complete specification for the format, I'd be willing to > use Core Data, but as it is, the prospect of having > one's own

Re: NSTableView/NSOutlineView view-based group rows/items span the whole column?

2013-06-22 Thread Quincey Morris
On Jun 22, 2013, at 17:52 , Nick Zitzmann wrote: > I did search the documentation and the archives, and didn't see anyone > talking about this. It appears that, in view-based NSTableViews or > NSOutlineViews, if a row is designated as a group row/item, then the view > spans the entire column,

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Michael Crawford
Relational Databases and Databases in general are two different things. E. F. Codd proposed Relational Databases in a 1970 Communications of the ACM paper that turned up instantly in a search. Here's a PDF: http://www.seas.upenn.edu/~zives/03f/cis550/codd.pdf That paper itself says nothing a

NSTableView/NSOutlineView view-based group rows/items span the whole column?

2013-06-22 Thread Nick Zitzmann
I did search the documentation and the archives, and didn't see anyone talking about this. It appears that, in view-based NSTableViews or NSOutlineViews, if a row is designated as a group row/item, then the view spans the entire column, and the table column argument passed into -outlineView:view

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Charles Srstka
On Jun 22, 2013, at 10:43 AM, Michael Crawford wrote: > I don't use Core Data because it's not cross-platform. In my honest > opinion no one in their right mind would bet their livelihood on > platform-specific document formats, no matter what the platform. > > ... > > While one can use SQLite

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Luther Baker
... yes, and if you are going to be pedantic, please be somehow consistent with the docs: > Core Data provides an infrastructure for change management and for saving objects to and retrieving them from storage. It can use SQLite as one of its persistent store types. *It is not, though, in and of i

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Timothy Reaves
Yes, CoreData is a database, and it does do ORM. It's not just an ORM, and it's not an RDBMS. If it wasn't a database, it couldn't store data; that is the definition of a database. A database is not something that has row, columns, etc; it's something that stores data in an unspecified manor.

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Michael Crawford
I don't use Core Data because it's not cross-platform. In my honest opinion no one in their right mind would bet their livelihood on platform-specific document formats, no matter what the platform. I used to be a Senior Engineer at Apple. Many of my best friends still work for Apple. But I reme

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Kyle Sluder
On Jun 22, 2013, at 12:55 AM, Rick Mann wrote: > > On Jun 22, 2013, at 00:50 , Keith J. Schultz wrote: > >> Core data helps in setting up the database, but deleting is another matter. >> You should do that manually for consistency. Core Data has no knowledge of >> the >> semantics of your da

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Rick Mann
On Jun 22, 2013, at 00:50 , Keith J. Schultz wrote: > Core data helps in setting up the database, but deleting is another matter. > You should do that manually for consistency. Core Data has no knowledge of > the > semantics of your database. so use prepareToDelete. Yeah, I set it back to a