Re: WWDC App

2014-11-11 Thread Roland King
> On 20 Oct 2014, at 6:47 am, Alex Zavatone wrote: > > That's why I stopped reporting bugs. > > > On Oct 19, 2014, at 6:18 PM, Roland King wrote: > >> Broke all the way back at Beta 4, I filed a bug on it at the time, duped and >> still open. >> Whaddya know - they fixed it. _

updating NSTextField before spinner animates

2014-11-11 Thread sqwarqDev
Using Xcode Version 6.1 (6A1052d) on the latest developer build of Yosemite. I'm confused as to whether this is a bug, or if I'm just doing something wrong. I have an NSTextView, whose string I want to update while I wait for another method to complete. Since this method is going to take aroun

Re: NSImage glowing

2014-11-11 Thread Uli Kusterer
On 04 Nov 2014, at 19:41, Alex Kac wrote: > I have an NSImage that looks like in a mini-toolbar - kind of like Xcode. > > Now of course I can just create a hand-drawn selected version, but I like > doing things like that in code. So I’d like to have code that takes the > NSImage and makes it

Re: NSImage glowing

2014-11-11 Thread Allan Odgaard
On 11 Nov 2014, at 12:18, Uli Kusterer wrote: Now of course I can just create a hand-drawn selected version, but I like doing things like that in code. So I’d like to have code that takes the NSImage and makes it glow like Xcode here: https://www.dropbox.com/s/by642iw7xosnki7/Screenshot%202014

Re: updating NSTextField before spinner animates

2014-11-11 Thread Fritz Anderson
On 11 Nov 2014, at 4:15 AM, sqwarqDev wrote: > I have an NSTextView, whose string I want to update while I wait for another > method to complete. Since this method is going to take around 10-30 seconds, > I'm displaying a spinner progress indicator. > > However, I want the text field to updat

Re: How to obtain paths of laid-out text

2014-11-11 Thread Kyle Sluder
On Fri, Nov 7, 2014, at 04:40 PM, Graham Cox wrote: > In the past, I've obtained bezier paths from laid out text using a > subclass of NSLayoutManager that overrode the deprecated > -showPackedGlyphs:length:... method. This method had a nice smooth > impedance match with [NSBezierPath appendPackedG

Re: Weak linking

2014-11-11 Thread Greg Parker
That approach is not supported and will crash at runtime in some circumstances. Nobody has tried to make a list of precisely which cases will and will not work, so you're on your own here. For example, if you code has a category on NSTableCellView then it will crash. If your subclass of NSTable

Re: How to obtain paths of laid-out text

2014-11-11 Thread Graham Cox
> On 12 Nov 2014, at 3:27 am, Kyle Sluder wrote: > > On Fri, Nov 7, 2014, at 04:40 PM, Graham Cox wrote: >> In the past, I've obtained bezier paths from laid out text using a >> subclass of NSLayoutManager that overrode the deprecated >> -showPackedGlyphs:length:... method. This method had a nic

What Apple event functionality is still missing from Cocoa?

2014-11-11 Thread has
Hi folks, Currently when working with NSAppleEventDescriptor it is necessary to drop down to legacy or deprecated Carbon APIs in order to perform certain tasks such as packing and unpacking date descriptors and sending Apple events. Given Apple's regular Carbon API pogroms, it's an uncomforta

Re: How to obtain paths of laid-out text [SOLVED]

2014-11-11 Thread Graham Cox
I think I have a good solution. Code below. Turning off discontiguous layout didn't help, and I determined that the method was not being called multiple times for the same glyphs (it is called multiple times for different lines). Essentially, "packed" glyphs (whatever they are) appear to be a re