Learning SQLite by watching Core Data?

2008-06-23 Thread David Carlisle
I just finished my first simple Core Data Document Based Application. Four entities with multiple relationships. Now I want to recreate the same thing using just SQLite. I don't know SQLite, and I know very little Unix. I had read it was possible to study SQLite using Core Data, but I

Re: Learning SQLite by watching Core Data?

2008-06-23 Thread David Carlisle
In a 2005 entry on the Big Nerd Ranch Weblog titled Life with SQLite, it says: If you are curious about how Core Data structures the file, sqlite3 is a great way to explore it. So I'm starting with just being curious about what Core Data did with my sqlite file, and I'm trying to work

Re: Learning SQLite by watching Core Data?

2008-06-23 Thread David Carlisle
I am studying an application design by implementing it with Core Data, then studying how I would move it to a platform where only sqlite is available. I appreciate the book recommendations. I found where the Definitive Guide to SQLite is available as an ebook, so I might go that route.

Re: Learning SQLite by watching Core Data?

2008-06-23 Thread David Carlisle
Your comments noted below are not encouraging. I'll likely get the Definitive Guide, and perhaps study one of the Cocoa sqlite wrappers. On Jun 23, 2008, at 3:27 PM, Jens Alfke wrote: integrating raw database APIs into object-oriented apps can be very difficult because they're two very

Re: Learning SQLite by watching Core Data?

2008-06-23 Thread David Carlisle
SQLiteStudy1.sqlite SQLite version 3.4.0 Enter .help for instructions sqlite .dump BEGIN TRANSACTION; CREATE TABLE ... the data structures are dumped as expected here On Jun 23, 2008, at 3:44 PM, Jens Alfke wrote: On 23 Jun '08, at 2:35 PM, David Carlisle wrote: I am studying an application design

Race condition with awakeFromNib?

2008-06-18 Thread David Carlisle
I have a navigator object which maintains a stack of NSViewControllers. When I create a new NSViewController and push it to the navigator, I want the view's back button to show the name of the previous view. If the navigator tries to set the title of the button, the button is still null

Re: Versioning MainMenu.nib

2008-06-04 Thread David Carlisle
Can't you just use NSApplication setMainMenu? Or are you committed to doing it with build settings? On Jun 3, 2008, at 9:12 PM, Chris Outwin wrote: I have MainMenu.nib and MainMenu(Debug).nib in a Cocoa document app using Xcode 3.0. The (Debug)version has controls only used during

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
makeFirstResponder:window]; [super saveDocument:sender]; } On May 28, 2008, at 11:15 PM, David Carlisle wrote: If I'm adding text to an NSTextField, then I select Save, somehow the message needs to get to the NSTextField wherever it is that it needs to terminate editing and send its

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
I'm not using Core Data. Perhaps that is part of why commitEditing doesn't work. I also mistakenly thought that NSWindowController was an NSController, and would respond to a commitEditing. DC On May 30, 2008, at 2:17 PM, Sean McBride wrote: Are you using Core Data? Have you seen:

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
I'm binding my NSCollectionView to my NSArrayController, so I expected sending a commitEditing to the NSArrayController would work. On May 30, 2008, at 2:09 PM, Kyle Sluder wrote: On Fri, May 30, 2008 at 3:33 PM, David Carlisle [EMAIL PROTECTED] wrote: The myPrepareToSave method in MyWindow

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
After your suggestion, I recalled and reviewed figure 6 about Saving a Document in the Document Based Applications Overview. That made it clear to me that saveDocument does call the saveDocumentWithDelegate method. Then I tried your scenario of closing an unsaved doc. Under the old

Need NSNumber setBoolValue for KVC Compliance workaround

2008-05-27 Thread David Carlisle
I want to put an NSMutableDictionary into my standardUserDefaults with keys and boolean values [NSNumber numberWithBool:YES/NO], then bind that to a table with keys and checkboxes in my preferences window. That all seems to work nicely, except that when I check one of the checkboxes I

NSTextField in NSCollectionView aborts editing without notice, solved

2008-05-24 Thread David Carlisle
I have an NSTextField in an NSCollectionView. If I type in a change to the NSTextField, then without hitting tab or clicking elsewhere in the NSCollectionView I click on a popup menu in the window, the NSTextField aborts the edit and loses the information without any kind of notice being

Re: IB outlets and NSCollectionViews

2008-05-23 Thread David Carlisle
I solved a similar problem when putting a pop up menu into a collectionView item. There might be an easier way, but I assume that to put a button in a collectionViewItem, the button would have to send a message to a subclass of NSCollectionViewItem, which you would then cause to send a

NSTextView without word wrap?

2008-05-23 Thread David Carlisle
I've spent the last few hours trying to create an NSTextView without word wrap. The BiScrollAspect.m file in the textSizingExample project file is no help at all. Searching on wrap is no help either. I've checked and unchecked various settings in IB. After much searching I settled on

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
(LargeNumberForText, LargeNumberForText)]; [textView setHorizontallyResizable:YES]; [textView setVerticallyResizable:YES]; } On May 23, 2008, at 12:03 PM, Douglas Davidson wrote: On May 23, 2008, at 10:33 AM, David Carlisle wrote: I've spent the last few hours trying to create

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
, David Carlisle wrote: Looks interesting. Thanks. DC On May 23, 2008, at 3:37 PM, Jonathan Dann wrote: You may also like to look at the source code to Smultron by Peter Borg. It's in there but I forget exactly. http://smultron.sourceforge.net/ Jon On 23 May 2008, at 21:55, David

Re: Problem binding to recreated NSCollectionView

2008-05-16 Thread David Carlisle
On May 16, 2008, at 11:03 AM, I. Savant wrote: On Fri, May 16, 2008 at 12:55 PM, David Carlisle [EMAIL PROTECTED] wrote: FWIW, I got my very own collection view (MyVOCV) working nicely with NSArrayController, all except for animations, and I just pre ordered the animation book from Amazon

Problem binding to recreated NSCollectionView

2008-05-14 Thread David Carlisle
I'm trying to recreate NSCollectionView from scratch so I can customize the animations. I have a problem in binding the array controller arrangedObjects to the content of MyCollectionView. In a test situation where I have an instance of both MyCollectionView and NSCollectionView bound to

F-Script Anywhere can't add to procmod group

2008-05-08 Thread David Carlisle
I'm trying to install F-Script Anywhere, but it can't install my developer account into the procmod group. It says not a known DirStatus. I don't speak Unix, but I tried finding some terminal commands on the internet for installing a user into the procmod group via terminal, but I can't

Re: F-Script Anywhere can't add to procmod group

2008-05-08 Thread David Carlisle
. On May 8, 2008, at 6:40 PM, Dave Dribin wrote: On May 8, 2008, at 7:31 PM, David Carlisle wrote: I'm trying to install F-Script Anywhere, but it can't install my developer account into the procmod group. It says not a known DirStatus. I don't speak Unix, but I tried finding some terminal

Re: F-Script Anywhere can't add to procmod group

2008-05-08 Thread David Carlisle
: On May 8, 2008, at 7:53 PM, David Carlisle wrote: My file directory name says FScriptBin-20070421 My startup warning message says I got it Jan 8, 2008, from www.fscript.org. I think you may have to downgrade to Robert's FSA 1.3.1 as it looks like the code signing stuff hasn't made

NSCollectionView animation complaint

2008-05-06 Thread David Carlisle
If I have two items in my NSCollectionView and I remove the first item, the animation causes the second item to slide underneath the first item which then pops out of existence revealing the second item underneath. It would look better if the animation caused the second item to slide over

Re: What is the status on the New Cocoa 2.0 Books?

2008-03-13 Thread David Carlisle
Does anyone know the status of the Cocoa Design Patterns book by Erik Buck, rough-cuts version or otherwise? Amazon says 12 January 2009. On Mar 12, 2008, at 5:54 PM, colo wrote: And might there be others ? ___ Cocoa-dev mailing list

Re: Observing with GC

2008-02-25 Thread David Carlisle
So in the non_GC world, where is the best place to - removeObserver:forKeyPath: if not in -dealloc? On Feb 25, 2008, at 8:02 AM, glenn andreas wrote: Note that in the non-GC world, you can't do that in -dealloc (since the KVO warning about deallocating something that is still be observed