Re: Messed up UTIs in NSDocument-based application

2012-01-12 Thread Kyle Sluder
On Tue, Jan 10, 2012 at 7:26 PM, Donald Ness wrote: > To recap, I released a document-based application with this: > > Document Types: > 1.) Name: "My Document", Extension: "myext", Identifier: "" > > Exported UTIs: (none) > Imported UTIs: (none) > > And now I have this: > > Document Types: > 1.)

Re: Is slowing down bindings updates possible?

2012-01-12 Thread Wade Tregaskis
> The result of this is that the UI updates really frequently and the > estimated time to complete and the download rate jump around a lot. I > would love it if I could tell cocoa to only update the UI once per > second instead of immediately when the property key changes. I don't believe there is

Re: checking if directory is writable

2012-01-12 Thread Kyle Sluder
On Tue, Jan 10, 2012 at 1:39 AM, Tony Arnold wrote: > Hi Rick, > > On 10/01/2012, at 7:49 PM, Rick C. wrote: > >> Just looking for confirmation, I can use NSFileManager isWritableAtPath: if >> I want to check if a directory can be written to correct?  Or do I have to >> use attributesOfItemAtPat

Re: checking if directory is writable

2012-01-12 Thread Wade Tregaskis
> I was of the understanding that Apple's recommendation was just to try the > operation you wanted to perform, and handle the error if there is one. This > is taken from the NSFileManager header, directly above the isWriteableAtPath: > declaration: > > "The following methods are of limited uti

Is slowing down bindings updates possible?

2012-01-12 Thread Andrew
I have a download controller with an NSMutableArray and an NSArrayController hooked up to a NSTableView with a view based setup. My array contains custom download objects. Each of those has a NSURLDownload instance. Basically, I am showing a browser-download like interface with size downloaded, to

Re: What makes OS X generate a hang report?

2012-01-12 Thread Jean Suisse
Hi ! Well, I am no expert, so I can't answer your question. But I do have a suggestion (fix): have you tried loading your QuickTime movie on an other thread, and then attaching it to your main thread ? (you have to detach it first). Jean On 11 janv. 2012, at 21:56, Mark Woods wrote: > Does a

Adding NSControl to IKImageBrowserCell

2012-01-12 Thread vinayak pai
Hi All, I've built a custom IKImageBrowserCell which is displaying my images in an IKImageBrowser without any issues. I'd like to add an NSButton to IKImageBrowserCell enable the delete functionality on each image. So that when I click the button, I can remove item at selected index and reload IKI

Messed up UTIs in NSDocument-based application

2012-01-12 Thread Donald Ness
So I recently shipped a document based application to the App Store with an unfortunate oversight: the UTI for the main document type was left blank, and wasn't exported. I had a name for it, but the identifier was straight up empty. Everything still worked great, but then I went to add another

Re: checking if directory is writable

2012-01-12 Thread Tony Arnold
Hi Rick, On 10/01/2012, at 7:49 PM, Rick C. wrote: > Just looking for confirmation, I can use NSFileManager isWritableAtPath: if I > want to check if a directory can be written to correct? Or do I have to use > attributesOfItemAtPath:error:? I don't need to change permissions just to > see i

Re: Forcing autosave

2012-01-12 Thread Kyle Sluder
On Jan 12, 2012, at 4:43 PM, Kyle Sluder wrote: > On Thu, Jan 12, 2012 at 4:32 PM, Gideon King wrote: >> I have a situation where I need my document's contents on disk, even if it's >> a new document with no changes, so I thought I would just make sure that the >> document had autosaved before

Re: Forcing autosave

2012-01-12 Thread Kyle Sluder
On Thu, Jan 12, 2012 at 4:32 PM, Gideon King wrote: > I have a situation where I need my document's contents on disk, even if it's > a new document with no changes, so I thought I would just make sure that the > document had autosaved before I complete my action on the file, and just pick > up

Forcing autosave

2012-01-12 Thread Gideon King
I have a situation where I need my document's contents on disk, even if it's a new document with no changes, so I thought I would just make sure that the document had autosaved before I complete my action on the file, and just pick up the URL of the last autosave from the document and use that.

Re: LSSharedFileListInsertItemURL/SMLoginItemSetEnabled and sandbox

2012-01-12 Thread Laurent Daudelin
On Jan 12, 2012, at 16:00, Torsten Curdt wrote: > I am a little confused about login items and the sandbox. > > The documentation says: > > "With App Sandbox, you cannot create a login item using functions in > the LSSharedFileList.h header file. For example, you cannot use the > function LSShar

LSSharedFileListInsertItemURL/SMLoginItemSetEnabled and sandbox

2012-01-12 Thread Torsten Curdt
I am a little confused about login items and the sandbox. The documentation says: "With App Sandbox, you cannot create a login item using functions in the LSSharedFileList.h header file. For example, you cannot use the function LSSharedFileListInsertItemURL." Yet after enabling the sandbox it st

Re: document saveing in Lion

2012-01-12 Thread Georg Seifert
Sorry for replying to my own post. Just as I wrote this, I found the "File Type Fixing in -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]" in the release notes. But this behavior is not acceptable. The read-only files should not be deleted but the user should be asked for an

document saveing in Lion

2012-01-12 Thread Georg Seifert
Hi, I have a problem and can find the right terms to search for it to solve my problem. I have a app, that can read several documents as but can’t save them, it has a native file format is can save to. If I open such a file, it shows a "locked" in the title bar. If I unlock it and make some ch

Re: Respecting tabs across applications

2012-01-12 Thread James Merkel
On Jan 11, 2012, at 2:40 PM, James Merkel wrote: > > On Jan 11, 2012, at 8:39 AM, Ross Carter wrote: > >> On Jan 10, 2012, at 10:14 PM, James Merkel wrote: >> >>> the default NSParagraphStyle is being applied to my string. >> >> To be precise, a NSParagraphStyle is being applied to your attri

AppleScript recording

2012-01-12 Thread Martin Crane
Hi all, Forgive me for posting here, but I have a Carbon question that needs a Cocoa equivalent, if it indeed exists: In my app (Carbon-based) I have supported AppleScript recording for many years, but this appears to be broken in Lion because my app no longer receives the 'Start Recording' an

Unit testing a bundle

2012-01-12 Thread Mikkel Eide Eriksen
Hi, I have a bundle project that produces an NSBundle. I am trying to add unit tests to this, but am getting the following error: 2012-01-12 01:23:33.644 otest[12650:407] The test bundle at /.../DerivedData/.../Debug/PluginTests.octest could not be loaded because a link error occurred. It is l