Re: SQLite Database 2 distinct database iphone.

2010-06-07 Thread Greg Reichow
The user data in the documents directory is backed up and can easily be restored. As for model changes, if they are simple changes to the model between versions, you may be able to get away with lightweight migration. It is a simple option to add when loading the persistent store.

Problem with one-way Core Data relationship not persisting

2010-02-21 Thread Greg Reichow
I have a problem with the core data object graph not properly persisting: Managed Object A (Car) has a one-way, one-to-many relationship to several Managed Object B's. (Tires) When I create the object graph, I use the standard generated relationship set mutator methods to setup the relationship

Re: Running NSURLConnection from within an NSOperation?

2010-02-10 Thread Greg Reichow
>>> I'm trying to run an NSURLConnection from an NSOperation. Apparently, it >>> won't run. I know that NSURLConnection need a run loop. Does that mean I'll >>> have to setup some kind of NSTime in my NSOperation and then call my run >>> loop at regular intervals? >> >> Try using the synchrono

Re: Running NSURLConnection from within an NSOperation?

2010-02-09 Thread Greg Reichow
> I'm trying to run an NSURLConnection from an NSOperation. Apparently, it > won't run. I know that NSURLConnection need a run loop. Does that mean I'll > have to setup some kind of NSTime in my NSOperation and then call my run loop > at regular intervals? Try using the synchronous version of

Re: Change background color of UITabBarItem and UITabBar

2010-01-27 Thread Greg Reichow
> > Thanks for this information. It did change the color of the TabBar. > But the other question is still unanswered. Is it possible to change > the TabBarItem's image colors? Instead of default gray (when not selected) > and blue (when selected)? How? > Again, a little bit of a grey area as you

Re: Change background color of UITabBarItem and UITabBar

2010-01-26 Thread Greg Reichow
> > Is it possible to change color of UITabBar instead of the default color black? > And also is it possible to change background color of UITabBarItem's > background > color instead of default color blue? If yes, how? There is no API for changing the UITabBar. Yet, you can subclass the TabBar

Re: Core Data Fetch Invariance

2009-12-26 Thread Greg Reichow
Your first comment was correct; they are unordered. The fact that they may come back in the same order is not guaranteed by the API. Therefore, if you need ordering, add an attribute to the core data object to do so. Greg On Dec 27, 2009, at 1:38 AM, Richard Somers wrote: > Objects in a pers

Re: Core Data - Importing using NSOperation - Problems on main thread

2009-12-20 Thread Greg Reichow
> Hi, > > I have an application that persists its data using core data. > > It uses an NSOperation to download new versions of the data asynchronously. > This NSOperation uses its own MOC (moc2) (as opposed to the MOC (moc1) used > in the main thread, which is used by the UI). Both MOCs sh

Re: [iPhone] Custom UIView like in iPhone Messages App

2009-11-07 Thread Greg Reichow
I am trying to implement a custom ui view with a background image to append chat messages into a scroll view like in iPhone default Messages SMS App. But I have few things to clarify. If its multiple lines how can I remove the image scaling so that it would not look like that background

Re: an app that never quits

2009-09-22 Thread Greg Reichow
The Apple iPhone Developer Forum is at- https://devforums.apple.com/community/iphone You will need to log in using your dev account. Best of luck with your application. While the lack of background processing is problematic for many applications, there is still a large variety of apps t

Core Data Crash on MOC Release

2009-08-13 Thread Greg Reichow
Long time lurker, first time to post. I have a iPhone 3.0 application that is using core data in an NSOperation to perform some updates. It is using it's own NSManagedObjectContext connected to a common (with the main thread) persistent store coordinator. Everything works great until the