Re: Deadlock during NSCache flush

2013-10-23 Thread Maxthon Chan
Situation: I am writing a custom decoder that decodes objects from JSON-based archives. My objects gets released prematurely, hence a manual retain is asked for. I need to make this thing work across multiple platforms (that is, Cocoa versus GNUstep) but some certain platform does not have the

Re: Is 10.9 ready for production development?

2013-10-23 Thread Nick Petrov
I am waiting for the 10.9.1 update in case any major bugs show up. If you have a team of developers, it is a good idea to start at least testing your development environment right now. -Nick http://code-and-coffee.blogspot.com On Oct 23, 2013, at 10:33 PM, Don Carlile wrote: > Now that 10.9

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 will

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 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 2:01, Greg

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 wrote: > On Oct 22, 2013, at 7:33 PM, Maxthon Chan wrote: >> Despite ARC banned retain/release/autorelease functions, there are stil

Re: Is 10.9 ready for production development?

2013-10-23 Thread Charles Srstka
On Oct 23, 2013, at 2:33 PM, Don Carlile 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 machine to the l

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 wrote: > > On Wed, 23 Oct 2013 13:33:00 -0600, Don Carlile said: > >> Now that 10.9 has been released, what is the general sense ab

Re: Is 10.9 ready for production development?

2013-10-23 Thread Jens Alfke
On Oct 23, 2013, at 12:33 PM, Don Carlile 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 builds since June

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 s

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 (Cocoa-de

Re: Deadlock during NSCache flush

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

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Quincey Morris
On Oct 23, 2013, at 08:41 , Half Activist 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 definition. The extension in t

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 th

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
Sorry, here is the exported type section. UTExportedTypeDeclarations UTTypeConformsTo public.xml UTTypeDescription Typ

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Kyle Sluder
> On Oct 23, 2013, at 6:17 AM, Half Activist wrote: > > Here's the Info.plist section > > CFBundleDocumentTypes > > >CFBundleTypeExtensions > >typeA > >CFBundleTypeIconFiles > >CFBundleTypeName >

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Kyle Sluder
On Oct 23, 2013, at 6:17 AM, Half Activist wrote: > > Here's the Info.plist section > > CFBundleDocumentTypes > > >CFBundleTypeExtensions > >typeA > >CFBundleTypeIconFiles > >CFBundleTypeName >

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
Here's the Info.plist section CFBundleDocumentTypes CFBundleTypeExtensions typeA CFBundleTypeIconFiles

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Mike Abdullah
On 23 Oct 2013, at 13:08, Half Activist 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 expected > filename e

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: 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 wrote: > You may try the following, which is probably a hack: > > In the dealloc method of the D

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 thread