Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-04-13 Thread Raglan T. Tiger
Just a quick follow-up and thanks to those that put me on the right path. I ran the code in GDB on a 10.6.8 machine and set NSZombieEnabled=YES. This showed me the object that was released that Cocoa was calling tableView:objectValueForTableColumn:row: on after release. This was only a

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
On Apr 13, 2015, at 14:29:07, Ken Thomases k...@codeweavers.com wrote: Or -[NSWorkspace type:conformsToType:]. And this is correct for the fileType parameter of writeSafelyToURL:ofType:forSaveOperation:error:? The docs don't explicitly say that fileType is a UTI, or which part of the

Re: NSURLProtocol

2015-04-13 Thread Mike Abdullah
Yes, but it’s up to WebKit how it decides to handle the content of the page, and what it agrees to hand off to NSURLProtocol. Perhaps most importantly, the webkit list has more WebKit engineers monitoring it; you’re more likely to get a decent response. On 13 Apr 2015, at 18:37, danchik

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Ken Thomases
On Apr 13, 2015, at 2:17 PM, Sean McBride s...@rogue-research.com wrote: On Mon, 13 Apr 2015 14:09:06 -0500, Steve Mills said: So, should string comparisons be case-insensitive when comparing UTIs? If not, then things fail. Don't compare as strings, use UTTypeConformsTo(). Or

Re: NSURLProtocol

2015-04-13 Thread danchik
question has nothing to do with webkit, the NSURLProtocol is part of foundation library, the fact that it is implemented inside a plugin, and can also be instanciated inside a webview, does not make it a webkit question. On Apr 12, 2015, at 2:30 AM, Mike Abdullah mabdul...@karelia.com wrote:

UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
The docs for creating a new app state that UTIs are case-sensitive: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid/TP40012582-CH28-SW8 However, unlike domain names, bundle IDs are case

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Sean McBride
On Mon, 13 Apr 2015 14:09:06 -0500, Steve Mills said: So, should string comparisons be case-insensitive when comparing UTIs? If not, then things fail. Don't compare as strings, use UTTypeConformsTo(). Cheers, -- Sean McBride, B. Eng

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Quincey Morris
On Apr 13, 2015, at 12:33 , Steve Mills sjmi...@mac.com wrote: And this is correct for the fileType parameter of writeSafelyToURL:ofType:forSaveOperation:error:? The docs don't explicitly say that fileType is a UTI, or which part of the Info.plist it comes from. We've just come to assume

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
On Apr 13, 2015, at 15:52:48, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 13, 2015, at 12:33 , Steve Mills sjmi...@mac.com wrote: $(PRODUCT_NAME:rfc1034identifier) Personally, I always replace this with an explicit string on a project that’s destined for public

Checking for iOS for cellular setting availability?

2015-04-13 Thread Rick Mann
Our app generates a lot of data, so we had an in-app setting to set the user prevent using up a limited data plan (Use cellular data). iOS 8 appears to have introduced per-app settings for this, so now we have three places where users have to ensure that they've enabled cellular data for the

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Shane Stanley
On 13 Apr 2015, at 11:17 pm, Mark Wright blue.bucon...@virgin.net mailto:blue.bucon...@virgin.net wrote: To hide the find bar I use the following: [self.textFinder performAction:NSTextFinderActionHideFindInterface] I guess if I go that option, I can just message the text view. At this

Xcode Export as Installer Package Question...

2015-04-13 Thread Peters, Brandon
Hello, I noticed that when testing the installer package for my app via export from Xcode, the app will not run when double-clicked. The error says invalid signature. I used the command-line installer tool to test the package which extracts and installs the app into the Applications folder:

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Martin Hewitson
Hi Shane, The way I’ve been doing this is to keep hold of my own text finder in my NSTextView subclass: self.textFinder = [[NSTextFinder alloc] init]; then to set it up like this: [self.textFinder setClient:self]; [self.textFinder setFindBarContainer:[self enclosingScrollView]];

Re: Crash when move open document based app file to trash

2015-04-13 Thread Jonathan Mitchell
On 13 Apr 2015, at 15:01, Mike Abdullah mabdul...@karelia.com wrote: I think the document system monitors the file, and calls -setFileURL: when it detects a change. Good catch there Mike! -setFileURL: does indeed get called immediately the file gets renamed, moved or trashed, I am not

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Shane Stanley
On 13 Apr 2015, at 5:31 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: The way I’ve been doing this is to keep hold of my own text finder in my NSTextView subclass: snip Unfortunately I still get reports of crashes similar to what you report. You almost had me convinced, until

Re: Crash when move open document based app file to trash

2015-04-13 Thread Mike Abdullah
I think the document system monitors the file, and calls -setFileURL: when it detects a change. I’m not sure how careful that monitoring is, though, whether it happens continuously, or only at the moment the app or document regains focus. On 13 Apr 2015, at 14:19, Jonathan Mitchell

Crash when move open document based app file to trash

2015-04-13 Thread Jonathan Mitchell
I have a Cocoa document app that represents a sqlite backed document type (its not CoreData). Users can (and do) delete documents while they are open in the app. The app then crashes in the sqlite data layer whenever data access occurs. The data layer is Mono based, not Cocoa. I want to try and

Re: Crash when move open document based app file to trash

2015-04-13 Thread Jonathan Mitchell
On 13 Apr 2015, at 17:10, Jens Alfke j...@mooseyard.com wrote: On Apr 13, 2015, at 7:01 AM, Mike Abdullah mabdul...@karelia.com wrote: I’m not sure how careful that monitoring is, though, whether it happens continuously, or only at the moment the app or document regains focus. Even

Re: Crash when move open document based app file to trash

2015-04-13 Thread Jens Alfke
On Apr 13, 2015, at 9:36 AM, Jonathan Mitchell jonat...@mugginsoft.com wrote: Of these lack of network support is probably the killer. But I will dig a bit deeper. In my experience, relying on file locking on networked filesystems is playing with fire. There are too many situations

Re: Crash when move open document based app file to trash

2015-04-13 Thread Jens Alfke
On Apr 13, 2015, at 7:01 AM, Mike Abdullah mabdul...@karelia.com wrote: I’m not sure how careful that monitoring is, though, whether it happens continuously, or only at the moment the app or document regains focus. Even if it’s continuous, it can’t be continuous enough, since the OS is

Re: Scattered NSProgress use

2015-04-13 Thread Jens Alfke
On Apr 11, 2015, at 12:49 PM, Daryle Walker dary...@mac.com wrote: We have to make sure that the automatic parent/nesting aspect doesn’t make sibling cousin progress objects, whose actions will be interlaced, interfere with each other. It’s only automatic while an NSProgress is made the