Copy AVplayerLayer content to another CALayer on another window (Preview)

2014-11-20 Thread Hado Hein
For a signage app I’m looking for a way to copy the output of an AVPlayer doing a 720p video to another window.layer . At the moment I’m doing a complete second AVPlayer with the same file and start/stop the files right after each other. This lasts for the imagination of sync play. Now I’d

Re: Making the Versions Browser less of a dog

2014-11-20 Thread Jerry Krinock
On 2014 Nov 19, at 20:36, Graham Cox graham@bigpond.com wrote: Is there a sound way to determine at document creation time whether the VB is active or not? Try the term “viewing mode”, as in-[NSDocument inViewingMode]. The documentation leaves me unsure as to whether or not “viewing

how to reset another app's prefs

2014-11-20 Thread Scott Ribe
Now that the system is doing so much caching of preferences, and simply copying prefs files will not get the job done, is there any other way of forcibly setting another app's preferences? (FYI, neither of the apps in question is sandboxed.) The situation is that an app is accessing a

Re: Deconstructing Text Tables

2014-11-20 Thread Charles Jenkins
Thank you, Ken. It took some research and experimentation before I could understand your explanation, but it looks like that’s exactly what I needed. — Charles Jenkins On Tuesday, November 18, 2014 at 3:43 PM, Ken Thomases wrote: On Nov 18, 2014, at 6:38 AM, Charles Jenkins

Adding attributes to text in a text table cell

2014-11-20 Thread Charles Jenkins
I have an NSTextTable in which each cell will contain the entire text of a small RTF document. I want the user to be able to edit the document’s text in the cell, including applying styles. In this case, a “style means an NSDictionary containing entries for NSFontAttributeName,

Re: how to reset another app's prefs

2014-11-20 Thread Ken Thomases
On Nov 20, 2014, at 3:21 PM, Scott Ribe scott_r...@elevated-dev.com wrote: Now that the system is doing so much caching of preferences, and simply copying prefs files will not get the job done, is there any other way of forcibly setting another app's preferences? (FYI, neither of the apps in

Re: how to reset another app's prefs

2014-11-20 Thread Scott Ribe
On Nov 20, 2014, at 3:14 PM, Ken Thomases k...@codeweavers.com wrote: You could use -[NSUserDefaults setPersistentDomain:forName:]. You could also use defaults import domain path to plist. I never knew about that import subcommand--thanks for pointing it out. I suppose I could *try*

Re: Adding attributes to text in a text table cell

2014-11-20 Thread Ken Thomases
On Nov 20, 2014, at 3:47 PM, Charles Jenkins cejw...@gmail.com wrote: I have an NSTextTable in which each cell will contain the entire text of a small RTF document. I want the user to be able to edit the document’s text in the cell, including applying styles. In this case, a “style

Re: Making the Versions Browser less of a dog

2014-11-20 Thread Graham Cox
Thanks Jerry, I hadn't known about -isInViewingMode - I'll check out whether it means anything I can use :) I can already see a bit of a problem with what I'm trying to do though - without reading and parsing my file data, the UI isn't built properly, for example I have a source list outline

Re: Making the Versions Browser less of a dog

2014-11-20 Thread Jerry Krinock
On 2014 Nov 20, at 18:10, Graham Cox graham@bigpond.com wrote: I can already see a bit of a problem with what I'm trying to do though - without reading and parsing my file data, the UI isn't built properly, for example I have a source list outline view that is populated by the data

Re: how to reset another app's prefs

2014-11-20 Thread Shane Stanley
On 21 Nov 2014, at 8:21 am, Scott Ribe scott_r...@elevated-dev.com wrote: Every once in a while, Word just resets some of its prefs. Every once in a while, it corrupts its prefs. Every once in a while, it wedges itself due to (probably) resource leaks. And so on. So periodically (+ whenever

Re: Cursor - Unable to use retina image

2014-11-20 Thread David M. Cotter
see fixed code below On Oct 1, 2013, at 10:22 AM, Abdul Sowayan asowa...@vectorworks.net wrote: Hi folks, I have two images, a retina and a non-retina image that I would like to use as a Cursor. I crop the transparency out of the images and combine them into one NSImage that has two

Crash frequently since OSX upgrades to Yosemite

2014-11-20 Thread beita . ll
Hi expert, My application crashes frequently on Yosemite, any suggestion? Exception Type:EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0001, 0x Application Specific Information: objc[60867]: Method cache corrupted. This may be a message to an invalid