Re: Deadlock during NSCache flush

2013-10-23 Thread Andreas Grosam
You may try the following, which is probably a hack: In the dealloc method of the Database, do something like this: - (void) dealloc { NSCache* cache = self.cache; dispatch_async(private_queue, ^{ cache = nil; }); } Now, if `cache_remove_with_block` executes on a different

Re: Deadlock during NSCache flush

2013-10-23 Thread Maxthon Chan
I forgot to zero out the variable after cache is handed to the current autorelease pool (after objc_autorelease(objc_retain(_cache));) so it did not work. On Oct 23, 2013, at 16:07, Andreas Grosam agro...@onlinehome.de wrote: You may try the following, which is probably a hack: In the

UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
Hello, In an iOS project, that is supposed to handle different kind of files, I declared in Info.plist the types handled, with two UTI types, say com.mycompany.typeA and com.mycompany.typeB. I also added the expected filename extensions for the two, suppose it's .typeA and .typeB.

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Mike Abdullah
On 23 Oct 2013, at 13:08, Half Activist halfactiv...@gmail.com wrote: Hello, In an iOS project, that is supposed to handle different kind of files, I declared in Info.plist the types handled, with two UTI types, say com.mycompany.typeA and com.mycompany.typeB. I also added the

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
Here's the Info.plist section keyCFBundleDocumentTypes/key array dict keyCFBundleTypeExtensions/key array stringtypeA/string /array

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Kyle Sluder
On Oct 23, 2013, at 6:17 AM, Half Activist halfactiv...@gmail.com wrote: Here's the Info.plist section keyCFBundleDocumentTypes/key array dict keyCFBundleTypeExtensions/key array stringtypeA/string /array

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Kyle Sluder
On Oct 23, 2013, at 6:17 AM, Half Activist halfactiv...@gmail.com wrote: Here's the Info.plist section keyCFBundleDocumentTypes/key array dict keyCFBundleTypeExtensions/key array stringtypeA/string /array

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
Sorry, here is the exported type section. keyUTExportedTypeDeclarations/key array dict keyUTTypeConformsTo/key array stringpublic.xml/string /array

Re: How to change highlight colour on NSTableView row

2013-10-23 Thread Uli Kusterer
I blogged about themeing NSTableView a while ago: http://orangejuiceliberationfront.com/themeing-nstableview/ That lists all the steps for changing highlight and other colors. Did you not see that via Google? Does that not work for you for some reason? I have a shipping application that uses

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Quincey Morris
On Oct 23, 2013, at 08:41 , Half Activist halfactiv...@gmail.com wrote: here is the exported type section Reading UTI plists makes my head hurt, so I may be getting this wrong, but it looks to me like you’ve put the file extension in the document type definition instead of in the UTI

Re: Deadlock during NSCache flush

2013-10-23 Thread Greg Parker
On Oct 22, 2013, at 7:33 PM, Maxthon Chan xcvi...@me.com wrote: Despite ARC banned retain/release/autorelease functions, there are still alternatives there in the form of C functions: From CoreFoundation CoreFoundation/CoreFoundation.h: CFRetain() = retain CFRelease() = release

Is 10.9 ready for production development?

2013-10-23 Thread Don Carlile
Now that 10.9 has been released, what is the general sense about it being ready for production work? My project is debating moving the developers to 10.9. What are others doing? ANy concerns? Thanks, Don Carlile ___ Cocoa-dev mailing list

Re: Is 10.9 ready for production development?

2013-10-23 Thread Sean McBride
On Wed, 23 Oct 2013 13:33:00 -0600, Don Carlile said: Now that 10.9 has been released, what is the general sense about it being ready for production work? My project is debating moving the developers to 10.9. What are others doing? ANy concerns? If you have several developers, I'd suggest

Re: Is 10.9 ready for production development?

2013-10-23 Thread Jens Alfke
On Oct 23, 2013, at 12:33 PM, Don Carlile carl...@mac.com wrote: Now that 10.9 has been released, what is the general sense about it being ready for production work? My project is debating moving the developers to 10.9. What are others doing? ANy concerns? I’ve been running various

Re: Is 10.9 ready for production development?

2013-10-23 Thread Eric E Dolecki
I haven't tested Xcode but Arduino Editor is borked for me. Some java thing that I thought update, but alas no. Eric On Oct 23, 2013, at 3:39 PM, Sean McBride s...@rogue-research.com wrote: On Wed, 23 Oct 2013 13:33:00 -0600, Don Carlile said: Now that 10.9 has been released, what is

Re: Is 10.9 ready for production development?

2013-10-23 Thread Charles Srstka
On Oct 23, 2013, at 2:33 PM, Don Carlile carl...@mac.com wrote: Now that 10.9 has been released, what is the general sense about it being ready for production work? My project is debating moving the developers to 10.9. What are others doing? ANy concerns? I've upgraded my development

Re: Deadlock during NSCache flush

2013-10-23 Thread Maxthon Chan
There are still situations that you may want a little touch-up so from time to time a manual call to these is still needed. On Oct 24, 2013, at 2:01, Greg Parker gpar...@apple.com wrote: On Oct 22, 2013, at 7:33 PM, Maxthon Chan xcvi...@me.com wrote: Despite ARC banned

Re: Deadlock during NSCache flush

2013-10-23 Thread Chris Hanson
What Greg says on this topic is authoritative. -- Chris Sent from my iPad On Oct 23, 2013, at 4:35 PM, Maxthon Chan xcvi...@me.com wrote: There are still situations that you may want a little touch-up so from time to time a manual call to these is still needed. On Oct 24, 2013, at

How to create source-list programmatically?

2013-10-23 Thread Hoon Hwangbo
Hello. Today, I spend a whole day to configure source-list. It is typical job, but it work too hard for me because I wanted to avoid Interface Builder. I configured NSOutlineView and subclassed NSTableCellView and assigned my own NSImageView and NSTextField to the properties. I expected to