CoreData: error: couldn't read cache file

2017-02-11 Thread Donald Hall
Hi all, After upgrading to Xcode 8 and iOS 10.2 when I run my app on a simulator I get the following error message on every CoreData save: CoreData: error: (NSFetchedResultsController): couldn't read cache file to update store info timestamps The save method itself does not return an error co

UISplitviewController with master view controller hierarchy

2016-12-30 Thread Donald Hall
Hi all, I have a master-detail iPad app with a hierarchy of table view controllers in the master view controller side of a split view controller. When the app starts in portrait mode the back button on the detail view navigation bar correctly shows the title of the initial table view controller

Re: system sounds in iOS

2014-12-21 Thread Donald Hall
t;> >> If you have you can also make your own sound effects with your preferred >> instrument. I have kept my MIDI keyboard just for this purpose, creating >> alert chords for my apps. >> >>> On Dec 21, 2014, at 02:28, Carl Hoefs >>> wrote: >>&g

system sounds in iOS

2014-12-19 Thread Donald Hall
Hi all, Are we allowed to access the sound files in "/System/Library/Audio/UISounds/“ in our iOS app store submissions, or if we want to play a short sound do we have to supply our own sound file? I am guessing not, as they are outside the app sandbox. I want to play a sound indicating that th

Can't find keyplane

2014-12-11 Thread Donald Hall
Hi all, I get the following message in Xcode 6.1.1, iOS 8 when I tap a text field with keyboard specified as NumberPad in a xib: "Can't find keyplane that supports type 4 for keyboard iPhone-Portrait-NumberPad; using 3876877096_Portrait_iPhone-Simple-Pad_Default” No such message if I specify a

Re: 'NSInvalidArgumentException', reason: 'Unable to parse constraint format: Expected a view

2013-12-30 Thread Donald Hall
toolbar above the top layout guide by 20px, is that > what you want? I'd think you'd want to put it below the top layout guide else > it'll go off the top of the screen in some cases. > > Take a look at the frame your toolbar ended up with and see where it's gon

Re: 'NSInvalidArgumentException', reason: 'Unable to parse constraint format: Expected a view

2013-12-29 Thread Donald Hall
derlap the status bar. Best, Don Don Hall Apps & More Software Design, Inc. http://www.appsandmore.com d...@appsandmore.com On 2013-12-29, at 11:36 PM, Roland King wrote: > Do you really have a space between V: and [toolbar]? I'd remove that. > > > > On 30

'NSInvalidArgumentException', reason: 'Unable to parse constraint format: Expected a view

2013-12-29 Thread Donald Hall
Hi all, I am trying to add a layout constraint to my container view programmatically by putting the following code in the view controller (which I got and modified from Apple's UIViewController docs): - [toolbar setTranslatesAutoresizingMaskIntoConstraints: NO]; id topGuide

iPad drawing and screen rotation

2012-09-21 Thread Donald Hall
I have a master detail project where I draw Bezier paths in the detail view. On rotation from portrait to landscape (or vice versa) the proportions of the drawings are distorted. For example, a circle in one orientation becomes an oval in the other. What is the best way to maintain the aspect ra

implementing AS in Cocoa: how to specify a document to close

2012-05-14 Thread Donald Hall
This is probably a dumb question but in the following AS Dictionary statement: close specifier : the document(s) or window(s) to close what can I use for "specifier"? "close document 1" works fine, but I want to be able to specify a particular document whose position is unknown. I know the docu

Re: NSTableview tooltip bug?

2012-05-02 Thread Donald Hall
sign, Inc. d...@appsandmore.com On 2012-05-02, at 11:54 AM, cocoa-dev-requ...@lists.apple.com wrote: > From: Corbin Dunn > To: Donald Hall > Cc: cocoa-dev@lists.apple.com > Subject: Re: NSTableview tooltip bug? > Message-ID: <0a0b2cde-d218-4d90-8021-c73872afd...@apple.com

NSTableview tooltip bug?

2012-05-01 Thread Donald Hall
I have an NSTableview column where each cell contains a file name. I use tooltips (addToolTipRect and NSToolTipOwner protocol) to show the complete path to the file when the user hovers the mouse over the cell. This works fine unless the name of the file exceeds the column width - 3 pixels. i.e

Re: NSDate/NSDateFormatter question

2012-03-25 Thread Donald Hall
object with today's date before converting to a string just to be safe. Don On 2012-03-24, at 9:58 PM, Roland King wrote: > > On Mar 25, 2012, at 11:14 AM, Donald Hall wrote: > >> Can anyone explain what is going on here: >> >> NSDate *now = [NSDat

NSDate/NSDateFormatter question

2012-03-24 Thread Donald Hall
Can anyone explain what is going on here: NSDate *now = [NSDate date]; NSLog(@"now is %@", now); NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setTimeZone:[NSTimeZone localTimeZone]]; // this is MDT for me [dateFormatter s

Re: Uncaught Exception: NSUnknownKeyException

2012-03-09 Thread Donald Hall
+ 50 It looks like I'll either have to specify the identifiers in code or implement the new way to handle table columns using bindings. I will study the "NSTableViewBinding" sample project. Thanks again, Don On 2012-03-09, at 2:35 AM, Graham Cox wrote: > > On 09/03/201

Uncaught Exception: NSUnknownKeyException

2012-03-08 Thread Donald Hall
Does anyone have any idea what might be wrong if I am getting this exception: Uncaught Exception: NSUnknownKeyException [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key (null). Action is one of my classes. I am upgrading an old project for Lion. The present ve

Getting a UITextview to accept a double tap

2011-09-23 Thread Donald Hall
I have a subclass of UITextview that I want to recognize a double tap, and then to pass the event onto the controller of its superview. (The superview's controller is a subclass of UIViewController.) The responder chain works as expected, however, the tap count does not. I have tried using tou

[UIWeVview] goBack:/goForward: (correction)

2011-01-06 Thread Donald Hall
Sorry, it's not ""loadDocument:inView:"," it's "[aWebView loadRequest:request]" that works. I shouldn't post at midnight! Don Hi, It seems that these two methods work fine if the view content is loaded by "loadDocument:inView:", but don't work if the HTML data is loaded into the web view via

[UIWeVview] goBack:/goForward:

2011-01-05 Thread Donald Hall
HI, It seems that these two methods work fine if the view content is loaded by "loadDocument:inView:", but don't work if the HTML data is loaded into the web view via "loadHTMLString: baseURL". In the former case the back and forward buttons I made to invoke these two methods work, but when I

UIWebview: scrolling vs anchors - followup

2010-12-21 Thread Donald Hall
On December 20 I wrote: - I have a UIWebview in my app that I want to use to load an HTML document containing anchors so that I can jump around the document by tapping on the links to the various anchors. (e.g. a link at the bottom of the page to jump to the top of the

UIWebview: scrolling vs anchors

2010-12-19 Thread Donald Hall
I have a UIWebview in my app that I want to use to load an HTML document containing anchors so that I can jump around the document by tapping on the links to the various anchors. (e.g. a link at the bottom of the page to jump to the top of the page) I have the links and anchors working fine, e

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-01 Thread Donald Hall
nib. After re-creating my class with its own nib file I now have it working. I would say the table view not showing under the table view controller in the main window nib file is a bug, but perhaps there is a reason for this that I don't see. Thanks again, Don On Wed, 1 Dec 2010 00:02:0

[iOS] setting table style for root view controller of a navigation controller

2010-11-30 Thread Donald Hall
Hi all, I have a tab bar based iOS application. The controllers for each tab bar item are UINavigationControllers, and the root view controllers for each navigation controller are custom UITableViewControllers. What is the best way to set the style of the table views? I want at least one of

Re: How to schedule an application

2009-07-20 Thread Donald Hall
Take a look at an application I publish called "Script Timer". It will do what you want. It has a wide variety of scheduling options: specified time of the day, week, month, or year, on a repeating interval, and when certain events occur such as the start or end of idle of your computer, as wel

iPhone book recommendations

2009-03-09 Thread Donald Hall
I'm not sure if this is the most appropriate list for this question, but here goes: Can anyone recommend a good book to get started on iPhone programming? I've been using Cocoa for several years now, so I don't need a really basic starter book. I've looked at several books at amazon.com. Has