Re: GCD killed my performance

2014-04-25 Thread Quincey Morris
On Apr 24, 2014, at 22:49 , Jens Alfke j...@mooseyard.com wrote: It is, but most of it appears to be memory management _caused_ by GCD, since it goes away when I replace the dispatch calls with @synchronized. GCD is apparently causing a lot of blocks to get copied to the heap. Well, you

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-25 Thread Andy Lee
Okay, I just brushed up a bit on toolbars (wow, it's been a *very* long time). How did you create the instance of RBSStopButtonToolbarItem in the nib? From the docs, I learned that you can drag a view (in your case a button) from the IB palette into the Allowed Toolbar Items area. This should

Re: GCD killed my performance

2014-04-25 Thread Jonathan Taylor
Have you looked at the output from System Trace on both systems? I often find that to be informative. That might or might not be the way to tell, but have you considered that the very different CPU characteristics might mean that the actual timing and pattern of database commands is different

Re: ARC Retain Cycles

2014-04-25 Thread Dave
On 25 Apr 2014, at 04:45, Graham Cox graham@bigpond.com wrote: On 25 Apr 2014, at 11:24 am, Dave d...@looktowindward.com wrote: I always knew autorelease was bad news! No it isn't, at least not inherently. Inheriently it leads to data dependant methods/code and that is definitely

What is CoreData: Error: Unable to dynamically link Librarian.framework

2014-04-25 Thread Sean McBride
Hi all, I've seen in some user's console output from my app the following line: CoreData: Error: Unable to dynamically link Librarian.framework Google gives only a handful of results. Anyone know what this log means? Thanks, --

Re: Good idea/bad idea?

2014-04-25 Thread Sean McBride
On Thu, 24 Apr 2014 14:45:58 -0700, Quincey Morris said: I still don't see how foo = [@Something fallbackIfNil:foo]; has any advantage over foo = foo ?: @Something; I don’t see how the latter has any advantage over your earlier suggestion [more or less]: if (!foo)

Re: Good idea/bad idea?

2014-04-25 Thread Andy Lee
On Apr 25, 2014, at 10:22 AM, Sean McBride s...@rogue-research.com wrote: The 'if form' is arguably better for testing too. Many code coverage tools are line-based, and with this form it's easier to see if your test cases cover going in the branch and not. Sure, and similarly for plain old

Re: Good idea/bad idea?

2014-04-25 Thread Alex Zavatone
On Apr 25, 2014, at 10:38 AM, Andy Lee wrote: On Apr 25, 2014, at 10:22 AM, Sean McBride s...@rogue-research.com wrote: The 'if form' is arguably better for testing too. Many code coverage tools are line-based, and with this form it's easier to see if your test cases cover going in the

Re: GCD killed my performance

2014-04-25 Thread Jens Alfke
On Apr 25, 2014, at 1:11 AM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: Have you looked at the output from System Trace on both systems? I often find that to be informative. OK, I tried this and it did turn out to be very informative :) even though I don’t know how to interpret

Re: GCD killed my performance

2014-04-25 Thread Seth Willits
On Apr 25, 2014, at 8:08 AM, Jens Alfke j...@mooseyard.com wrote: I’m ending up at the opposite of the received wisdom, namely: * dispatch_sync is a lot cheaper than dispatch_async * only use dispatch_async if you really need to, or for an expensive operation, because it will slow down all

NSHelpManager

2014-04-25 Thread Tom Doan
I'm trying to do something with help which I would have hoped would be straightforward, but it seems not be so. I have several applications which are both Windows and Mac. I have a help tool (Windows based) which generates a .chm file for Windows and a collection of .html files for the Mac.

Re: NSHelpManager

2014-04-25 Thread Jerry Krinock
On 2014 Apr 25, at 10:38, Tom Doan t...@estima.com wrote: 1. NSHelpManager does not seem to have a way to open up a page based upon the file name (just anchors and search strings), while the older Apple Help did. Am I missing something there? I don’t think so. All my pages begin with, an

NSScroller revision?

2014-04-25 Thread edward taffel
i just noticed i’m not sure in which seed it occurred: NSScroller seems to have undergone some revision. i now get this message: CoreAnimation: warning, deleted thread with uncommitted CATransaction; created by: 0 QuartzCore 0x7fff96328ff6

Re: NSScroller revision?

2014-04-25 Thread Kyle Sluder
On Fri, Apr 25, 2014, at 12:20 PM, edward taffel wrote: i just noticed i’m not sure in which seed it occurred: NSScroller seems to have undergone some revision. i now get this message: CoreAnimation: warning, deleted thread with uncommitted CATransaction; created by: 0 QuartzCore

Re: NSScroller revision?

2014-04-25 Thread edward taffel
On Apr 25, 2014, at 3:32 PM, Kyle Sluder k...@ksluder.com wrote: On Fri, Apr 25, 2014, at 12:20 PM, edward taffel wrote: i just noticed i’m not sure in which seed it occurred: NSScroller seems to have undergone some revision. i now get this message: CoreAnimation: warning, deleted thread

Converting from RTF to HTML misses out image tags

2014-04-25 Thread Pax
I'm trying to convert from RTF to HTML like so: NSAttributedString* rtfContent = [[NSAttributedString alloc]initWithRTF:rtfData documentAttributes:nil]; NSData* htmlData = [rtfContent dataFromRange:NSMakeRange(0, rtfContent.length)

Re: NSScroller revision?

2014-04-25 Thread Kyle Sluder
On Fri, Apr 25, 2014, at 01:16 PM, edward taffel wrote: thanks kyle, if this were the case, i should expect to see the same report for both scrollers; Not necessarily. If they were both deallocated on the same background thread, then there's only one thread with a dangling CATransaction to

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-25 Thread Peters, Brandon
Andy, Thank you for the guidance! Clicking twice on the toolbar item in IB revealed the NSButton Attribute Inspector. However, now the images will not show despite being set in IB. I tried programmatically to set the images for the outlet NSButton and got error messages pertaining to “not

Re: GCD killed my performance

2014-04-25 Thread Roland King
Have you clicked the 'strategy' buttons at the top left of instruments, I for some reason can only do this after I've recorded a trace, not during? They are easily overlooked but show per-core or per-thread traces. They can be very useful finding places where everything blocks waiting for one

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-25 Thread Andy Lee
On Apr 25, 2014, at 5:52 PM, Peters, Brandon bap...@my.fsu.edu wrote: Thank you for the guidance! Clicking twice on the toolbar item in IB revealed the NSButton Attribute Inspector. However, now the images will not show despite being set in IB. I tried programmatically to set the images for

Re: GCD killed my performance

2014-04-25 Thread Jens Alfke
On Apr 25, 2014, at 5:42 PM, Roland King r...@rols.org wrote: They can be very useful finding places where everything blocks waiting for one piece of code to execute, or you ping madly from thread-to-thread, queue-to-queue. Thanks, that sounds very useful. I’lll give it a try when I dive