Re: Core Data: Multiple stores: saving problems

2010-07-10 Thread Jerry Krinock
On 2010 Jul 10, at 04:10, Jonathan Fewtrell wrote: > when I come to save *the* context Reads like you're using only one managed object context. I would use two: one for your static data and one for your user data. > I have a cross-store relationship Boing. Read Core Data Programming Guide >

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Sean McBride
Matt James (matteja...@gmail.com) on 2010-07-10 10:31 said: >After using this technique, I did have one more question related to >automated class generation. A much more automated solution is to use mogenerator: Sean __

Re: Custom control and cells

2010-07-10 Thread Georg Seifert
Am 10.07.2010 um 03:42 schrieb Michael Ash: > On Fri, Jul 9, 2010 at 6:22 PM, Georg Seifert wrote: >> Hi, >> The thing is, I want to replicate the NSCollectionView but using cells >> instead of views. The NSCollectionView has a lot of problems like >> performance and I couldn’t find a way to

Dynamically Positioning Resized WebView

2010-07-10 Thread Pierce Freeman
Hi Everyone: In my application, I am placing multiple instances of WebView right below each other in a NSWindow. And in order to show the whole content without scrolling, I am resizing the web views to the size of their content in (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *

Re: Getting a list of alternative words from NSSpellChecker

2010-07-10 Thread Martin Hewitson
Wow! I looked long and hard at the documentation and didn't see that one. Guess it's time to take a break :) Thanks! Martin On Jul 10, 2010, at 5:20 PM, Keary Suska wrote: > On Jul 10, 2010, at 6:16 AM, Martin Hewitson wrote: > >> Does anyone know a way to get a list of alternative words for

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Joanna Carter
Hi Matt > After using this technique, I did have one more question related to automated > class generation. Xcode automatically tried to add the class files to the > AppName.xcdatamodeld directory. My initial assumption was that this was only > because I had it selected in the source list whe

Core Data: many-to-many relationships not being saved

2010-07-10 Thread David Catmull
In my finance app, I have Expense and Tag entities with many-to-many relationships to each other. But changing those relationships doesn't mark the document as dirty, and the changes don't get saved. It doesn't seem to matter if the relationships are optional or not, and they're not transient. T

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Keary Suska
On Jul 10, 2010, at 8:31 AM, Matt James wrote: > know that was the common way to generate those classes to begin with (as I > said, I'm completely new to the workings of Core Data). I don't know how "common" precisely, but very handy in certain situations, especially for those who hate KVC synt

Re: Getting a list of alternative words from NSSpellChecker

2010-07-10 Thread Keary Suska
On Jul 10, 2010, at 6:16 AM, Martin Hewitson wrote: > Does anyone know a way to get a list of alternative words for a particular > (wrongly spelt) work from NSSpellChecker? I want to provide an in-line pop-up > list of possible replacement words for words that are shown as mis-spelt in > an NST

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Matt James
On Sat, Jul 10, 2010 at 3:35 AM, Roland King wrote: > > On 10-Jul-2010, at 3:24 PM, Joanna Carter wrote: > > > Hi Matt > > > >> Wow, thank you so much. I have no idea how I missed the "Class" column > in the xcdatamodel's UI. From what I saw, none of the tutorials mentioned > doing this either.

Getting a list of alternative words from NSSpellChecker

2010-07-10 Thread Martin Hewitson
Dear list, Does anyone know a way to get a list of alternative words for a particular (wrongly spelt) work from NSSpellChecker? I want to provide an in-line pop-up list of possible replacement words for words that are shown as mis-spelt in an NSTextView. The idea would be that the user just put

Core Data: Multiple stores: saving problems

2010-07-10 Thread Jonathan Fewtrell
I am developing a Core Data iOS app that accesses static data from a read-only sqlite store in the app bundle and also saves user data (comments, ratings, etc) in a separate sqlite store in the application documents directory. The 'UserData' entity is assigned to one configuration ("UserDataRea

Re: Detecting 'nop' clicks on an NSPopUpButton?

2010-07-10 Thread jonat...@mugginsoft.com
On 9 Jul 2010, at 20:14, Sean McBride wrote: > Hi all, > > If the user clicks a popup button and reselects the existing selection, > the button still sends its action. I'd like to treat that as a nop. > > Is there a way to detect, from my action method, that the new selection > is the same as

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Roland King
On 10-Jul-2010, at 3:24 PM, Joanna Carter wrote: > Hi Matt > >> Wow, thank you so much. I have no idea how I missed the "Class" column in >> the xcdatamodel's UI. From what I saw, none of the tutorials mentioned >> doing this either. Maybe I was reading the newbie stuff where they didn't >

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Joanna Carter
Hi Matt > Wow, thank you so much. I have no idea how I missed the "Class" column in > the xcdatamodel's UI. From what I saw, none of the tutorials mentioned doing > this either. Maybe I was reading the newbie stuff where they didn't get into > fun stuff like that. I'm not sure why you would