How to get Window Info Dict for just one Window?

2016-06-10 Thread Dave
Hi All, I’m using: myWindowArray = (NSArray*) CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly,kCGNullWindowID)); To get an Array Containing the Info Dictionaries for all Visible Window, this works great, however I think find the Window I am interested in I save it,

Is windowControllerDidLoadNib used only when windowNibName is?

2016-06-10 Thread Daryle Walker
I replaced windowNibName with makeWindowControllers since I'm moving window management to a separate controller. I kept windowControllerDidLoadNib around. Now I wondered if it still gets called. I put in a "print( #function + "got called." )" and never saw the output. Is this method called only

Re: Is windowControllerDidLoadNib used only when windowNibName is?

2016-06-10 Thread Jerry Krinock
> On 2016 Jun 10, at 06:16, Daryle Walker wrote: > > I replaced windowNibName with makeWindowControllers since I'm moving window > management to a separate controller. I kept windowControllerDidLoadNib > around. Now I wondered if it still gets called. I put in a "print( #function > + "got cal

Re: Is windowControllerDidLoadNib used only when windowNibName is?

2016-06-10 Thread dangerwillrobinsondanger
If you choose to use explicit window controllers, they should own the window they load. That's what they're for. You might customize them with a protocol on the document controller as a kind of delegate for the window controllers to give a simple callback API that is decoupled. This pattern is

Sidebar outline view, rowSizeStyle, and bold text

2016-06-10 Thread David Catmull
I have a view-based, sidebar-style NSOutlineView. For some items, I want to make the text bold. But if I change the rowSizeStyle to medium instead of the default (in awakeFromNib), the text doesn't display as bold. If instead I use a custom row size (in outlineView:heightOfRowByItem:) it works. Wha

Re: How to get Window Info Dict for just one Window?

2016-06-10 Thread Dave
Hi, If I do this: myWindowListOptions = kCGWindowListExcludeDesktopElements | kCGWindowListOptionOnScreenAboveWindow | kCGWindowListOptionIncludingWindow | kCGWindowListOptionIncludingWindow; myWindowArray = (NSArray*) CFBridgingRelease(CGWindowListCopyWindowInfo(myWindowListOptions,theWindowI

Re: How to get Window Info Dict for just one Window?

2016-06-10 Thread Dave
More experimenting: if I use myWindowListOptions = kCGWindowListExcludeDesktopElements | kCGWindowListOptionIncludingWindow; myWindowArray = (NSArray*) CFBridgingRelease(CGWindowListCopyWindowInfo(myWindowListOptions,theWindowID)); it seems a bit better, but I’m not sure if it is valid or not?

Open-file progress dialog with cancel button

2016-06-10 Thread Daryle Walker
I don't need this (yet), but it popped up in my head. Usually, readFromData: ofType: processes the data in place. But what if the process take a while, or you otherwise want to provide a progress window (maybe with a cancel button)? I guess you could handle the parsing in an NSOperation, but ho

Re: Open-file progress dialog with cancel button

2016-06-10 Thread Kyle Sluder
On Fri, Jun 10, 2016, at 11:03 AM, Daryle Walker wrote: > I don't need this (yet), but it popped up in my head. Usually, > readFromData: ofType: processes the data in place. But what if the > process take a while, or you otherwise want to provide a progress window > (maybe with a cancel button)? I

Re: quicklook audio sample rates

2016-06-10 Thread Jens Alfke
> On Jun 9, 2016, at 6:03 PM, George Toledo wrote: > > Does Quicklook play audio of a previewed file at the sample rate it was > encoded at, or is it somehow doing a samplerate conversion on the fly? QuickLook is just calling AVFoundation, which is calling CoreAudio. CoreAudio [obviously] trie

Re: quicklook audio sample rates

2016-06-10 Thread Kyle Sluder
On Thu, Jun 9, 2016, at 08:03 PM, George Toledo wrote: > I'm having a hard time finding documentation that covers this question... > > Does Quicklook play audio of a previewed file at the sample rate it was > encoded at, or is it somehow doing a samplerate conversion on the fly? > > Hopefully thi

Re: Sidebar outline view, rowSizeStyle, and bold text

2016-06-10 Thread corbin dunn
> On Jun 10, 2016, at 7:58 AM, David Catmull wrote: > > I have a view-based, sidebar-style NSOutlineView. For some items, I want to > make the text bold. But if I change the rowSizeStyle to medium instead of > the default (in awakeFromNib), the text doesn't display as bold. If instead > I use a

Re: Sidebar outline view, rowSizeStyle, and bold text

2016-06-10 Thread David Catmull
OK, thanks. I wasn't thinking of bold being affected by row size, but I guess it makes sense that it's going to reset the font entirely. On Fri, Jun 10, 2016 at 10:46 AM, corbin dunn wrote: > > On Jun 10, 2016, at 7:58 AM, David Catmull wrote: > > I have a view-based, sidebar-style NSOutlineVie

Re: quicklook audio sample rates

2016-06-10 Thread じょいすじょん
> On Jun 11, 2016, at 1:43 AM, Kyle Sluder wrote: > > On Thu, Jun 9, 2016, at 08:03 PM, George Toledo wrote: >> I'm having a hard time finding documentation that covers this question... >> >> Does Quicklook play audio of a previewed file at the sample rate it was >> encoded at, or is it somehow

Re: quicklook audio sample rates

2016-06-10 Thread Jens Alfke
> On Jun 10, 2016, at 10:37 AM, じょいすじょん > wrote: > > I assumed the OP is interested to know whether listening to the playback in > QuickLook is going to be a valid exercise > for a pro audio person, versus opening the file in any particular application. If the sample rates didn’t match, and C

Re: Sidebar outline view, rowSizeStyle, and bold text

2016-06-10 Thread corbin dunn
> On Jun 10, 2016, at 9:54 AM, David Catmull wrote: > > OK, thanks. I wasn’t thinking of bold being affected by row size, but I guess > it makes sense that it's going to reset the font entirely. Yeah, and if you want to have more control then don’t use the textField outlet (make your own), an

A Bucket Full of Memory Leaks

2016-06-10 Thread Richard Charles
In Xcode 7.3.1 create a new project. Template: Cocoa Application Language: Objective-C Check - Create Document-Based Application Check - Use Core Data This is very similar to the project I am currently working on. Profile the application using the Leaks Instrument. The app launches and choose F