CoreData questions: How to reset NSManagedObject, how to "Un-manage" an NSManagedObject.

2011-03-23 Thread Motti Shneor
Hi. 1. When you create an NSManagedObject, it is initialized with default values defined in the model. How can I reset an existing NSManagedObject to these default values? 2. We have a multithreaded application, and we only keep one core-data context. Our network-related code receives data i

Re: design question

2011-03-23 Thread Ariel Feinerman
thank you very much for your answers. 2011/3/23 Graham Cox > > On 23/03/2011, at 11:58 AM, Quincey Morris wrote: > > > 1b. The property is a to-many relationship. > > > > If #1a, then the return value should be unchangeable, in the sense that > it should never change after being returned (regard

Re: CoreData questions: How to reset NSManagedObject, how to "Un-manage" an NSManagedObject.

2011-03-23 Thread Andreas Grosam
On Mar 23, 2011, at 8:21 AM, Motti Shneor wrote: > Hi. > > 1. When you create an NSManagedObject, it is initialized with default values > defined in the model. How can I reset an existing NSManagedObject to these > default values? Unless there is a better way, I would suggest to use a dictio

Re: How hidden the Keyboard in a UIWebView

2011-03-23 Thread Rodrigo Zanatta Silva
Hi, sorry for this delay, I had to solve another thing. The reason of WHY i am trying do this is because my boss say: DO IT!! Lol. I am doing a "User Manager" so the user will not need to write in the keyboard and the system will record the user name. The UIWebView has a bad integration with keybo

Re: How hidden the Keyboard in a UIWebView

2011-03-23 Thread Laurent Daudelin
Rodrigo, I'm not sure, even after reading your entire message, what you're trying to accomplish. But, from what you mention, you seem to want to provide your boss with a way to bypass some login screen or automatically enter a user name, is that right? I wrote an application which kind of does

Exporting and Importing CoreData

2011-03-23 Thread Siegfried
Hello, I need to create an export / import system for my app, and just thought that asking the list for some advices could help a lot. The CoreData database I have is fairly simple. No relationships, only 3 entities with no more than 4 properties each: numbers and strings. So I think exporting

Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
I'm writing an application that copies files from one folder to another. I've been using NSFileManager "copyItemAtPath:toPath:error:" and it generally works well. However, when trying to copy files from a local folder to a folder on a remote volume, "copyItemAtPath:toPath:error:" will sometimes

NSCollectionView and firstResponder madness

2011-03-23 Thread Dave DeLong
Hi everyone, I have an NSCollectionView in a sheet. The NSCV does not allow selection and is used for displaying a list (so maxNumberOfColumns = 1) of views. These views have things like NSComboBoxes and NSTextFields in them. I'm trying to figure out how to be able to tab from textfield to t

Re: iPhone animation puzzle

2011-03-23 Thread Matt Neuburg
Nothing was "reversed", unfortunately. Block-based animation was introduced in iOS 4.0, and user interaction has always been off by default during one, so if you wanted user interaction you always had to use UIViewAnimationOptionAllowUserInteraction - and you still do. Apple did seem to regret

Re: TableView sorts and then it doesn't--SOLVED

2011-03-23 Thread Lynn Barton
Problem solved. The sort key for the decimal property was misspelled in the table column attributes in IB. On Mar 20, 2011, at 8:48 PM, Scott Anguish wrote: > have you implemented the delegate methods? > > is the array mutable? or do you supply a new array that is sorted? do you > reload the d

Re: Exporting and Importing CoreData

2011-03-23 Thread WT
On Mar 23, 2011, at 8:13 PM, Siegfried wrote: > Hello, > > I need to create an export / import system for my app, and just thought that > asking the list for some advices could help a lot. > > The CoreData database I have is fairly simple. No relationships, only 3 > entities with no more than

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Ken Thomases
On Mar 23, 2011, at 6:17 PM, Laurent Daudelin wrote: > I've been using NSFileManager "copyItemAtPath:toPath:error:" and it generally > works well. However, when trying to copy files from a local folder to a > folder on a remote volume, "copyItemAtPath:toPath:error:" will sometimes > fails to se

Re: Exporting and Importing CoreData

2011-03-23 Thread Siegfried
On 23/03/2011, at 20:38, WT wrote: > On Mar 23, 2011, at 8:13 PM, Siegfried wrote: > >> Hello, >> >> I need to create an export / import system for my app, and just thought that >> asking the list for some advices could help a lot. >> >> … > > How about using a property list file instead? Ea

Re: Exporting and Importing CoreData

2011-03-23 Thread WT
On Mar 23, 2011, at 8:46 PM, Siegfried wrote: > On 23/03/2011, at 20:38, WT wrote: > >> On Mar 23, 2011, at 8:13 PM, Siegfried wrote: >> >>> Hello, >>> >>> I need to create an export / import system for my app, and just thought >>> that asking the list for some advices could help a lot. >>> >

Re: Exporting and Importing CoreData

2011-03-23 Thread BareFeetWare
On 24/03/2011, at 10:13 AM, Siegfried wrote: > I need to create an export / import system for my app, and just thought that > asking the list for some advices could help a lot. > > The CoreData database I have is fairly simple. No relationships, only 3 > entities with no more than 4 properties

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
On Mar 23, 2011, at 16:38, Ken Thomases wrote: > On Mar 23, 2011, at 6:17 PM, Laurent Daudelin wrote: > >> I've been using NSFileManager "copyItemAtPath:toPath:error:" and it >> generally works well. However, when trying to copy files from a local folder >> to a folder on a remote volume, "copy

Re: Exporting and Importing CoreData

2011-03-23 Thread Siegfried
On 23/03/2011, at 20:55, WT wrote: > On Mar 23, 2011, at 8:46 PM, Siegfried wrote: >> On 23/03/2011, at 20:38, WT wrote: >>> On Mar 23, 2011, at 8:13 PM, Siegfried wrote: Hello, I need to create an export / import system for my app, and just thought that asking the list for so

Re: Exporting and Importing CoreData

2011-03-23 Thread Siegfried
On 23/03/2011, at 20:57, BareFeetWare wrote: > On 24/03/2011, at 10:13 AM, Siegfried wrote: > >> I need to create an export / import system for my app, and just thought that >> asking the list for some advices could help a lot. >> >> The CoreData database I have is fairly simple. No relationsh

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Ken Thomases
On Mar 23, 2011, at 7:37 PM, Laurent Daudelin wrote: > I actually looked at FSMegaInfo but when I built it, I realized that it was > using a lot of deprecated functions in 10.6 so I decided against using any > part of it because of the amount of work that would be required to rewrite > some par

Changed Properties

2011-03-23 Thread Alex Kac
I love using CoreData and one of my favorite features is its ability to get me the changed values between commits without any work on my end. I know I can do it the old fashioned way of putting bools and setter methods that mark those booleans as dirty on changes, but I was curious if there was

Help with Custom Control

2011-03-23 Thread Carlos Eduardo Mello
Hi, I built a special control with a custom view and several parts, including standard controls and some subviews. The thing does special displaying and animation, and needs to be connected to other parts of the UI and to the document controller. The set up works very nicely. Isolating it

Re: Changed Properties

2011-03-23 Thread Quincey Morris
On Mar 23, 2011, at 20:08, Alex Kac wrote: > I love using CoreData and one of my favorite features is its ability to get > me the changed values between commits without any work on my end. I know I > can do it the old fashioned way of putting bools and setter methods that mark > those booleans

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
On Mar 23, 2011, at 19:49, Ken Thomases wrote: > On Mar 23, 2011, at 7:37 PM, Laurent Daudelin wrote: > >> I actually looked at FSMegaInfo but when I built it, I realized that it was >> using a lot of deprecated functions in 10.6 so I decided against using any >> part of it because of the amoun

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
On Mar 23, 2011, at 19:49, Ken Thomases wrote: > On Mar 23, 2011, at 7:37 PM, Laurent Daudelin wrote: > >> I actually looked at FSMegaInfo but when I built it, I realized that it was >> using a lot of deprecated functions in 10.6 so I decided against using any >> part of it because of the amoun