not debuggable?

2014-06-10 Thread Torsten Curdt
I got this iOS project where I access the calendar - and I am completely baffled. [store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *accessError) { if (granted) { NSString *calendarIdentifier = [[NSUserDefaults standardUserDefaults]

Re: not debuggable?

2014-06-10 Thread Uli Kusterer
On 10 Jun 2014, at 11:47, Torsten Curdt tcu...@vafer.org wrote: I got this iOS project where I access the calendar - and I am completely baffled. [store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *accessError) { if (granted) {

Re: Other app blocks mine from opening my documents

2014-06-10 Thread Uli Kusterer
On 10 Jun 2014, at 04:36, Seth Willits sli...@araelium.com wrote: My app opens SQL files so I declared a UTI for it in Exported UTIs in the app Info.plist with my own identifier, uses sql as an extension, has a text/plain mime type, and conforms to public.plain-text. My app opens a new

Re: not debuggable?

2014-06-10 Thread Torsten Curdt
Indeed it's a *throw* breakpoint. The queueing is good point. In the end I was so desperate that I restarted the iPhone - that fixed it. Scary! But thanks for your help. On Tue, Jun 10, 2014 at 2:26 PM, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 10 Jun 2014, at 11:47, Torsten Curdt

Set contents of CALayer to animated GIF?

2014-06-10 Thread Charles Carver
Is it possible to set the contents of a CALayer to an animated GIF and have it display that animation? I know that I can set the contents to an image like so: CALayer* subLayer = [CALayer layer]; NSImage *image = [[NSImage alloc] initWithData:data]; subLayer.contents = image; And the image will

Re: IKImageBrowserCell

2014-06-10 Thread SevenBits
On Tuesday, June 10, 2014, Daniel Santos daniel.d...@gmail.com wrote: Absolutely. What do you have in mind ? On Monday, June 9, 2014, SevenBits sevenbitst...@gmail.com javascript:_e(%7B%7D,'cvml','sevenbitst...@gmail.com'); wrote: On Monday, June 9, 2014, Daniel Luis dos Santos

Re: IKImageBrowserCell

2014-06-10 Thread SevenBits
From: *SevenBits* sevenbitst...@gmail.com Date: Tuesday, June 10, 2014 Subject: IKImageBrowserCell To: Daniel Santos daniel.d...@gmail.com On Tuesday, June 10, 2014, Daniel Santos daniel.d...@gmail.com javascript:_e(%7B%7D,'cvml','daniel.d...@gmail.com'); wrote: Absolutely. What do you have in

Re: Best practices with singletons

2014-06-10 Thread Dave
Hi, You should take a look at this article: http://c2.com/cgi/wiki?SingletonsAreEvil Cheers Dave On 8 Jun 2014, at 17:30, William Squires wsqui...@satx.rr.com wrote: Okay, I have several classes in my (somewhat large, and growing) project that implement the singleton pattern via a

Re: Other app blocks mine from opening my documents

2014-06-10 Thread Seth Willits
On Jun 10, 2014, at 5:29 AM, Uli Kusterer witness.of.teacht...@gmx.net wrote: Seems, between Panic and you registering their own UTIs for SQL files, the OS gets confused which is the actual type. AFAIK Apple assumes there is only one UTI for a type. So when it opens the file, it sees your

Re: Set contents of CALayer to animated GIF?

2014-06-10 Thread David Duncan
On Jun 10, 2014, at 8:05 AM, Charles Carver charlescar...@mac.com wrote: Is it possible to set the contents of a CALayer to an animated GIF and have it display that animation? No. I know that I can set the contents to an image like so: CALayer* subLayer = [CALayer layer]; NSImage

Another app's UTI can break your app

2014-06-10 Thread Seth Willits
TLDR: --- If your app has a document type that may use the same extension as another app, you should override typeForContentsOfURL:error: because otherwise the existence of that other application on a user's system can break your app. Problem summary:

Re: Another app's UTI can break your app

2014-06-10 Thread Sean McBride
On Tue, 10 Jun 2014 12:21:13 -0700, Seth Willits said: TLDR: --- If your app has a document type that may use the same extension as another app, you should override typeForContentsOfURL:error: because otherwise the existence of that other application on a user's system can

Re: Another app's UTI can break your app

2014-06-10 Thread Seth Willits
On Jun 10, 2014, at 12:33 PM, Sean McBride s...@rogue-research.com wrote: This is a critical problem. This is well known, and has been discussed on this list years ago. Sigh. Wish I had been able to find anything on this topic when I searched. At least I'm not crazy. Yes, a malicious

Re: Another app's UTI can break your app

2014-06-10 Thread Vincent
It's not even about malicious intent. Coda obviously has no malicious intent, but it breaks my app. I'd break Coda if it my app was installed before it. That's just inconceivable to me. I’m not sure associating well known extensions types as .SQL is a good idea in the first place. I have

Re: Another app's UTI can break your app

2014-06-10 Thread Sean McBride
On Tue, 10 Jun 2014 12:54:06 -0700, Seth Willits said: It's not even about malicious intent. Coda obviously has no malicious intent, but it breaks my app. I'd break Coda if it my app was installed before it. That's just inconceivable to me. The root problem is with file formats that are not your

Problem in notification

2014-06-10 Thread Tom Doan
I have a user of one of my software programs who has been having all kinds of problems which I can't seem to reproduce, and have no idea how to even debug them. I include below a traceback that he sent me. This is something that occurs almost right away: launch the program, do File-New, and it

Re: Problem in notification

2014-06-10 Thread John Pannell
Hi Tom- What does the implementation of this method look like? [ENSScrollView viewContentFrameDidChange:] This error: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x ... makes me think that something is nil that is not supposed to be,

CMMotionManager valid data?

2014-06-10 Thread Todd Heberlein
I’ve just started playing with CMMotionManager on my iPhone in an OpenGL program. I allocate CMMotionaManger and startDeviceMotionUpdates in -viewDidLoad. In -update I check if deviceMotionActive and print the roll value. motionManager.deviceMotion.attitude.roll For the first few

Re: CMMotionManager valid data?

2014-06-10 Thread Graham Cox
Not sure if it's relevant but I've noticed that since iOS 7, motion-sensitive apps ask for a calibration almost every time, where the phone has to be rolled around until a circle completes. It never used to do that, or only in very specific cases, or when the user clicked a calibration button.

Re: Another app's UTI can break your app

2014-06-10 Thread Uli Kusterer
On 10 Jun 2014, at 21:21, Seth Willits sli...@araelium.com wrote: - (NSString *)typeForContentsOfURL:(NSURL *)url error:(NSError **)outError; { if ([url.pathExtension.lowercaseString isEqual:@sql]) { return @my.uti.type; } return [super

document inexplicably becomes locked and fails to save under sandboxing

2014-06-10 Thread Martin Wierschin
Hello everyone, I'm sandboxing an NSDocument based application for OS X. In addition to Apple's standard Open Recent menu, this app also provides the user a few ways to reopen commonly used documents. To make that work under sandboxing, I capture a security-scoped bookmark for each such