Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-11 Thread Martin Hewitson
OK, I tried with the MOC's undoManager set to nil, but the problem persists. Most annoying. I'll keep digging and post back if I discover anything. Martin On 10, Jan, 2013, at 06:46 PM, Peter wrote: > > Am 10.01.2013 um 18:38 schrieb Martin Hewitson: > >> >> On 10, Jan, 2013, at 06:25 PM, P

Re: Service with NSURLConnection

2013-01-11 Thread Uli Kusterer
On 11.01.2013, at 20:45, Jens Alfke wrote: > Then you’ll need to block the main thread until the background thread > finishes its work. You could use an NSConditionLock to do that — main thread > creates the lock and locks it, passes the lock to the background thread, then > blocks waiting for

Re: How to force creation of default persistentStore/autosave in NSPersistentDocument

2013-01-11 Thread Jerry Krinock
Hello Joachim, Make sure you're not using asynchronous saving with NSPersistentDocument. Beyond that, I think that there may still be some deep unresolved issues when NSPersistentDocument meets the new NSDocument features introduced in Lion. You'd get great value by filing a DTS Technical Supp

Re: Service with NSURLConnection

2013-01-11 Thread Jens Alfke
On Jan 11, 2013, at 11:09 AM, Jim Thomason wrote: > For sake of argument, assume that the work has to be done in an external > thread, or I have to jump in and out of the main thread some how. I'm not > actually using URL connections like this in the actual app, I was just hoping > that it wa

Re: Service with NSURLConnection

2013-01-11 Thread Jim Thomason
Razafrazin. Okay, you all thwarted my example. :-) For sake of argument, assume that the work has to be done in an external thread, or I have to jump in and out of the main thread some how. I'm not actually using URL connections like this in the actual app, I was just hoping that it was a nice sim

Re: Service with NSURLConnection

2013-01-11 Thread Jens Alfke
On Jan 11, 2013, at 8:59 AM, Jim Thomason wrote: > The issue is that my -doWebStuff:userData:error: method seems to only let > me write to the pasteboard during the invocation of that method, and once > it completes I'm done. NSURLConnection is all delegate based, so I wouldn't > have the result

Re: Core Foundation Objects and Properties when using ARC

2013-01-11 Thread John McCall
On Jan 10, 2013, at 4:35 PM, Dave wrote: > I've looked all over and just can't seem to find the recommended approach to > handling CF objects in properties when using ARC. > > I have an init method that needs to create a CF object and store it as a > property for use while the object is alive.

Re: Service with NSURLConnection

2013-01-11 Thread Jim Thomason
It's not my app, so it's all opaque to me. I'm trying to implement a service that sits up in the service menu. So the user could, for my contrived example, be in Pages, type in their word, invoke my service, and get the definition automatically pasted into Pages for them. I don't have access to a

Re: Service with NSURLConnection

2013-01-11 Thread Alex Zavatone
Can you declare a callback that gets automatically called when the web request completes, then as a result of this new entry point issues a "needs refresh" to the GUI item you care about? That GUI item then grabs the data from the source it's tied to which you have just updated as part of the ca

Re: Issue with Core Data Model

2013-01-11 Thread David Delmonte
note to self: learn to read. On Jan 11, 2013, at 11:59 AM, Mike Abdullah wrote: On 11 Jan 2013, at 16:35, David Delmonte wrote: > I think that now, entities must start with a capital letter.. Amy has an *attribute* named "description"; not an entity. __

Re: Issue with Core Data Model

2013-01-11 Thread Mike Abdullah
On 11 Jan 2013, at 16:35, David Delmonte wrote: > I think that now, entities must start with a capital letter.. Amy has an *attribute* named "description"; not an entity. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Service with NSURLConnection

2013-01-11 Thread Jim Thomason
Gang, In my fighting with services, I'm trying a different approach and hence have a different question - is there a way that I could craft a service that reads in selected text, uses that to open and perform a web connection, and then returns that data back to the calling app? The trivially sill

Re: Issue with Core Data Model

2013-01-11 Thread David Delmonte
I think that now, entities must start with a capital letter.. On Jan 11, 2013, at 8:22 AM, Amy Gibbs wrote: I've got an app that I write just for me. I've been using it for a couple of years on 10.5. Everything has now been upgraded and I'm on 10.8. I need to upgrade the app as it doesn't wor

Re: Issue with Core Data Model

2013-01-11 Thread Amy Gibbs
If I used xml in the store it would probably be easy but it's an sql store to complicate matters. I'll maybe try just duplicating it and trying to build to see if that works, Thanks, Many Thanks Amy Gibbs On 11 Jan 2013, at 4:24PM, Alex Zavatone wrote: > Yeah, I never touched data models

Re: Issue with Core Data Model

2013-01-11 Thread Alex Zavatone
Yeah, I never touched data models in Xcode 3 so I can't comment on that but I think you are on to something. If you are able to bulk change "description" to "myDescription" does the problem go away? How easy is it to duplicate your project, try those changes, remove the old models and see if t

Re: Issue with Core Data Model

2013-01-11 Thread Amy Gibbs
Hi, To be honest I don't really know. I have an entity called Idea, and a string attribute of 'description' Xcode4 really doesn't like this and crashes. I can change the attribute name in a new data model, but can I then remove the old models and just leave the mapping models to deal with upgr

Re: Issue with Core Data Model

2013-01-11 Thread Alex Zavatone
Is this a collision with a class's description method? Back as of Xcode 4.2, many classes would not implicitly support po in the debugger unless you wrote your own description method to return the properties you wanted to expose. On Jan 11, 2013, at 8:22 AM, Amy Gibbs wrote: > I've got an ap

Issue with Core Data Model

2013-01-11 Thread Amy Gibbs
I've got an app that I write just for me. I've been using it for a couple of years on 10.5. Everything has now been upgraded and I'm on 10.8. I need to upgrade the app as it doesn't work properly. One of the issues is I called and attribute of an entity 'description'. This didn't appear as an e

How to force creation of default persistentStore/autosave in NSPersistentDocument

2013-01-11 Thread Joachim Kurz
Dear list, I have a problem saving a managedObjectContext connected to a newly created NSPersistentDocument. I asked the same question at Stackoverflow but either it doesn't receive much attention or no one can answer it. I'll repeat it here hoping that one of you can help me, but of course I

Re: NSTabviewItem View

2013-01-11 Thread Graham Cox
On 11/01/2013, at 3:41 AM, Koko wrote: > Is it possible to set the view of a tab view item to scroll view? It does not > appear so but I am looking for confirmation one way or the other. I would say that setting the actual view of a tab view item to something else isn't a good idea. You shou

Core Foundation Objects and Properties when using ARC

2013-01-11 Thread Dave
Hi, I've looked all over and just can't seem to find the recommended approach to handling CF objects in properties when using ARC. I have an init method that needs to create a CF object and store it as a property for use while the object is alive. When the object is released I want to rel

Re: NSTabviewItem View

2013-01-11 Thread Jerry Krinock
On 2013 Jan 10, at 08:41, Koko wrote: > Is it possible to set the view of a tab view item to scroll view? It does not > appear so but I am looking for confirmation one way or the other. > > In IB if you set the class to scroll view the attributes tab does not show > the scroll view attributes