Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
Hi All I create an attributed string - setting the background color, font colour and a paragraph style to range left. When this cell is displayed in an NSTable view it works exactly as I would hope. Also, when the row is selected the system reverses out the foreground font color as usual. I

Re: static acting like __block in GCD singleton pattern

2013-06-30 Thread Alex Zavatone
On Jun 29, 2013, at 12:20 PM, Matt Neuburg wrote: Yes, I looked at the spec and searched on the word static but I can't really understand what the spec is telling me. Am I the only one who thinks that this document has gotten more and more obscure and abstruse over time? So I'm not the

Re: Attributed strings in NSTableViews

2013-06-30 Thread Kyle Sluder
On Jun 30, 2013, at 6:04 AM, Peter Hudson peter.hud...@me.com wrote: I then append a second attributed string to the first - with very similar attributes as the first. After this, when the row is selected, the system no longer reverses out the text color as it did previously. Text

Re: Cocoa-dev Digest, Vol 10, Issue 400

2013-06-30 Thread Pamela Grandt
I will be out of the office Fri. June 28. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
I can't find any reference to NSControlTextColor anywhere. Peter On 30 Jun 2013, at 19:44, Kyle Sluder k...@ksluder.com wrote: On Jun 30, 2013, at 6:04 AM, Peter Hudson peter.hud...@me.com wrote: I then append a second attributed string to the first - with very similar attributes as

iterative process building huge stack

2013-06-30 Thread James Maxwell
I have a process that's generating a bunch of MIDI files. The process itself runs okay, but if I request a large number of files and pause execution at some point part way through, I notice that there are literally thousands of frames on the stack. In some cases, it will crash before it

Re: Attributed strings in NSTableViews

2013-06-30 Thread Kyle Sluder
On Jun 30, 2013, at 12:33 PM, Peter Hudson peter.hud...@me.com wrote: I can't find any reference to NSControlTextColor anywhere. Sorry, I'm referring to +[NSColor controlTextColor]. AKA 100% black. I might be (mis)remembering the color's name in the color list.

Re: Attributed strings in NSTableViews

2013-06-30 Thread Andy Lee
On Jun 30, 2013, at 2:44 PM, Kyle Sluder k...@ksluder.com wrote: On Jun 30, 2013, at 6:04 AM, Peter Hudson peter.hud...@me.com wrote: I then append a second attributed string to the first - with very similar attributes as the first. After this, when the row is selected, the system no

Re: Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
Thanks Kyle. That has fixed it. Peter On 30 Jun 2013, at 20:39, Kyle Sluder k...@ksluder.com wrote: On Jun 30, 2013, at 12:33 PM, Peter Hudson peter.hud...@me.com wrote: I can't find any reference to NSControlTextColor anywhere. Sorry, I'm referring to +[NSColor controlTextColor]. AKA

Re: Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
Andy Thanks for this, It helps me fix another problem I have. Peter On 30 Jun 2013, at 20:48, Andy Lee ag...@mac.com wrote: On Jun 30, 2013, at 2:44 PM, Kyle Sluder k...@ksluder.com wrote: On Jun 30, 2013, at 6:04 AM, Peter Hudson peter.hud...@me.com wrote: I then append a second

Re: Attributed strings in NSTableViews

2013-06-30 Thread Kyle Sluder
Please do file radars about this. Apple only knows how many people are affected if they let them know. --Kyle Sluder On Jun 30, 2013, at 1:01 PM, Peter Hudson peter.hud...@me.com wrote: Andy Thanks for this, It helps me fix another problem I have. Peter On 30 Jun 2013, at 20:48,

Re: iterative process building huge stack

2013-06-30 Thread Michael Crawford
Are you using any recursive algorithms? You might be but not know it. For example the C standard library qsort() is recursive. It's worst case runtime is O( n^2 ). In the average case its stack size is O( log n ). I'm not dead certain but I think the worst case stack size is O( n^2 ) as well.

Re: Something keeps toggling slow animations

2013-06-30 Thread Manfred Schwind
Hitting the Shift key three times in a row turns slow animations on/off in the Simulator of Xcode 4. Regards, Mani Am 28.06.2013 um 03:33 schrieb Rick Mann rm...@latencyzero.com: I've noticed in the past that suddenly slow animations would be turned on in the simulator. I'm not selecting

Re: iterative process building huge stack

2013-06-30 Thread James Maxwell
Hi Michael, Thanks so much for this info -- it's exactly the kind of help I need. I code with an almost criminal neglect for the hardware, so I'll study your message carefully (and follow up with much Googling, probably). And yes, because of the nature of the task, there's loads of recursion.