Re: Codesign broken in 10.11.4

2016-04-07 Thread Kevin Meaney
This may be relevant, though it does talk about issues with pref panes as well. http://mjtsai.com/blog/2016/03/31/gatekeeper-bug-in-mac-os-x-10-11-4/ > On 7 Apr 2016, at 15:13, Trygve Inda wrote: > > My app is built on 10.11.3. It is a prefPane with one command line tool and > three app bundles

Re: Caching CIContext?

2015-11-27 Thread Kevin Meaney
I can imagine the possibility when the window is in the background with no part of the window visible that if the system is under memory pressure (System or GPU) that the backing store might be discarded which would then invalidate your CIContext. You could save the pointer to the CGContext at

Re: How to get a condensed San Francisco UIFont?

2015-10-07 Thread Kevin Meaney
I believe the CoreText attributes should work. The attribute key of kCTFontTraitsAttribute with a value of TraitCondensed might do the trick. Kevin > On 8 Oct 2015, at 00:01, David Hoerl wrote: > > I'd like to do is get a condensed - or better yet - a bold (semi-bold) > condensed version of

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-16 Thread Kevin Meaney
I can't help but think that there should be a way to use xpc services as a nice solution to this problem. Unfortunately xpc services are mostly designed around the idea that if the service dies the app can restart it when it needs. Whereas you need the service running your experiment and collec

Re: Nullability annotation "best practice"

2015-08-16 Thread Kevin Meaney
I’ve annotated the public methods of the API of a framework and though I haven’t yet I will annotate internal methods and functions as well. I found a small number of issues where my thinking had not been clear, and that having to stop and consider what was intended when annotating the public AP

Re: XPC Services & non-Sandboxed Applications

2015-07-18 Thread Kevin Meaney
http://blog.yvs.eu.com/2013/07/cocoa-interprocess-communication-with-xpc/ <http://blog.yvs.eu.com/2013/07/cocoa-interprocess-communication-with-xpc/> But I think you will still get value from watching the video. Kevin Kevin Meaney Zukini Ltd Sheffield S2 3LN Company no: 9491832 > On 18 Jul 2015, at 1

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
> > I don’t know what the executable_path is for a screensaver, you’d think it > was very much the same thing. So first simplest option is to work out what > that is and then just put the library at the place it expects to be, > @executable_path/../Frameworks/. As long as that’s within > your

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
onti wrote: >> >> Could you point me to that articles please? >> >> On Fri, Jul 3, 2015 at 6:38 AM, Roland King > <mailto:r...@rols.org>> wrote: >> >>> On 3 Jul 2015, at 17:29, Kevin Meaney >> <mailto:k...@yvs.eu.com>> wrote:

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
I’m not sure either of those will work. On 3 Jul 2015, at 10:07, Roland King wrote: > > There’s two other options > > 1) Use install_name_tool to change the name in the library to the one you > want. If it’s shorter, and it should be as the install name in that library > seems rather long, yo

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
e other apps using it? > > On Fri, Jul 3, 2015 at 5:36 AM, Kevin Meaney <mailto:k...@yvs.eu.com>> wrote: > Ah, You might need to talk to the makers of the framework then. > > Kevin > >> On 3 Jul 2015, at 09:27, Juanjo Conti > <mailto:jjco...@carouselapps.co

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
c-Framework/archive/master.zip > <https://github.com/PaddleHQ/Mac-Framework/archive/master.zip> > > On Fri, Jul 3, 2015 at 5:23 AM, Kevin Meaney <mailto:k...@yvs.eu.com>> wrote: ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
Ah, the clarification helps. Does that mean the framework you are loading is none of the targets you are listing? and that it is built in a different project? Then you have set Runpath Search paths to @loader... in the correct target (Saver) but you need to remove setting Installation Directory

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
You need to set the Runpath Search paths in your ScreensaverNinja target to @loader_path/../Frameworks not the target Saver which I’m assuming is building your framework. I’m assuming here your ScreenSaver is built from the ScreensaverNinja target (the one with the application icon). Kevin >

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-02 Thread Kevin Meaney
I had similar issues when wanting to load a framework. My specific problem was loading the framework in an application that was then being loaded when I was using IBDesignable. This article by Mike Ash was extremely helpful at understanding what was happening. https://www.mikeash.com/pyblog/fr

Re: Simple Swift question

2015-06-30 Thread Kevin Meaney
Also the nifty new defer statement works well along with multiple guards if you need to do any cleanup when exiting the scope. The combination is great. Kevin > On 29 Jun 2015, at 23:43, Rick Mann wrote: > > >> On Jun 29, 2015, at 15:35 , Jens Alfke wrote: >> >> The unsightly nesting of the

Re: Obtaining an CIImage from an unbounded CIFilter?

2015-06-21 Thread Kevin Meaney
You crop it using the CICrop filter. > On 19 Jun 2015, at 22:56, Carl Hoefs wrote: > > I'm using CoreImage in a Cocoa app and I’m trying to obtain the outputImage > (CIImage) of a CICircleSplashDistortion CIFilter. I know that there are > certain filters whose output is unbounded, such as this

Re: Language options: Objective-C, Swift, C or C++?

2015-06-16 Thread Kevin Meaney
> The other major problem I ran into — unrelated, but I’m mentioning it in case > someone wants to jump in and tell me the easy way — is that I’m trying to use > frameworks in order to break the project into modules so that I can use the > access controls (private and internal) to keep implemen

Re: [PSA] OSStatus.com -- Error code lookup

2015-05-31 Thread Kevin Meaney
Hi Seth, Thanks for this. It is a great resource. I just tried to embed a link to a search for all the CoreVideo error codes into a tweet, but twitter doesn’t like the tick mark as a character in a url. Can you change that? Kevin > On 31 May 2015, at 05:46, Michael David Crawford wrote: > >

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kevin Meaney
> On 12 May 2015, at 08:33, Roland King wrote: > > >> On 12 May 2015, at 14:43, Graham Cox wrote: >> >> I’m exploring the use of the new IB_DESIGNABLE macro to preview a custom >> view live in IB. >> >> It keeps complaining that my view is taking too long to draw, over 200mS, >> which seem

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kevin Meaney
I am using this in in swift code that then calls into objective-c. I could not get it to work at first but that was because the drawing code was in a objective-c framework where the framework was being loaded with a run path search path that was relative to the application. I had to modify the f

Re: Rotate a standard Cocoa control?

2015-05-10 Thread Kevin Meaney
I have recently done something similar for an angular slider. Like Graham the control responds to the scroll wheel. But as well I allow changing of the value by holding down the command key when moving the mouse. Tracking a circular path is much easier if you are not at the same time holding do

Re: Why is NSString.UTF8String unavailable in Swift?

2015-03-21 Thread Kevin Meaney
Sent from my iPad > On 21 Mar 2015, at 23:41, Jens Alfke wrote: > > >> On Mar 21, 2015, at 2:13 PM, Quincey Morris >> wrote: >> >> Well, “String” is not “NSString”. > > Sure, but it’s bridged with NSString. The “Using Swift With Cocoa” book says: > “Swift automatically bridges between th

Re: Mac OS X - Inter-Application Communications

2015-03-06 Thread Kevin Meaney
> On 6 Mar 2015, at 11:34, Dave wrote: > > Hi, > >> I think you might need to provide some more info about your architecture and >> I also think you need to ask your questions in the xpc devforums list: >> https://devforums.apple.com/community/mac/coreos/xpc >>

Re: Mac OS X - Inter-Application Communications

2015-03-05 Thread Kevin Meaney
On 5 Mar 2015, at 19:29, Dave wrote: > > Hi, > > I’m really confused as it what type of a Application I need to create, from > reading the "Daemons and Services Programming Guide", it lists: > > Login Item. > XPC Service. > Launch Daemon. > Lauch Agent. > > On the face of it, a LogIn Item see

Re: Mac OS X - Inter-Application Communications

2015-03-03 Thread Kevin Meaney
On 3 Mar 2015, at 16:56, Kyle Sluder wrote: > > On Tue, Mar 3, 2015, at 05:50 AM, Dave wrote: >> I have the high level flow worked out now, but I’m not sure of what to >> use in order to Send Events between my Applications and whether I need to >> have one App (e.g. the Background App or another

Re: Human-understandable process name

2015-02-13 Thread Kevin Meaney
Apologies. Having just reread that forum post rather than working from what I remembered it is about the relationship between the processes rather than process names. You might still we'll be in luck. Kevin Sent from my iPad > On 13 Feb 2015, at 21:05, Andrew Keller wrote: > > Hello all, >

Re: Human-understandable process name

2015-02-13 Thread Kevin Meaney
The answer to this question on devforums suggests you might be out of luck. https://devforums.apple.com/message/1092608#1092608 Sent from my iPad > On 13 Feb 2015, at 21:05, Andrew Keller wrote: > > Hello all, > > I’m not sure if this is the correct list, but I figure I’ll start somewhere. >

Re: Crash in libsystem_kernel.dylib`__workq_kernreturn:

2015-01-25 Thread Kevin Meaney
What are you using for memory management then? Manual, GC? Sent from my iPad On 25 Jan 2015, at 22:57, Trygve Inda wrote: >>> On Jan 25, 2015, at 12:33 , Trygve Inda wrote: >>> >>> It does seem like if I remove a call to >>> >>> NSData* imageData = [[self myImageRep] >>> representationUsingT

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
And what I wrote is here: https://github.com/SheffieldKevin/attributesforpreset/blob/master/attributesforpreset/output.txt Sent from my iPad > On 20 Jan 2015, at 01:39, Kevin Meaney wrote: > > Forgot to mention. I wrote a little something a few days ago that iterates > throug

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
that led me to the Wikipedia pages. Kevin Sent from my iPad > On 19 Jan 2015, at 17:53, Quincey Morris > wrote: > >> On Jan 19, 2015, at 04:02 , Kevin Meaney wrote: >> >> What I'd like to be able to do is to compare profiles obtained this way with &

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
On 19 Jan 2015, at 17:53, Quincey Morris wrote: > On Jan 19, 2015, at 04:02 , Kevin Meaney wrote: >> >> What I'd like to be able to do is to compare profiles obtained this way with >> what I think must be AVFoundation's equivalent e.g.: >> &g

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
color property keys above) I'm creating from individual frames? It would be ideal if I could keep everything using the same profile color space in my processing pipeline. Kevin On 19 Jan 2015, at 01:56, Quincey Morris wrote: > On Jan 18, 2015, at 17:22 , Kevin Meaney wrote: &g

CVPixelBuffer and Color profiles

2015-01-18 Thread Kevin Meaney
I would like to have a CVPixelBuffer function that returns the color profile of a CVPixelBuffer. I'm using the CVPixelBuffer data as a backing store when I create a CGBitmapContext and I would like to provide the appropriate color profile when I create the CGBitmapContext. The CVPixelBuffer is c

Re: Debugging memory leak in NSURLSession with ARC

2015-01-13 Thread Kevin Meaney
leaks, not bugs. Kevin On 13 Jan 2015, at 10:21, Kevin Meaney wrote: > On 13 Jan 2015, at 02:51, Graham Cox wrote: >> >>> On 13 Jan 2015, at 12:21 pm, Roland King wrote: >>> >>> Did you read the devforums thread I pointed you at a couple of weeks ago

Re: Debugging memory leak in NSURLSession with ARC

2015-01-13 Thread Kevin Meaney
On 13 Jan 2015, at 02:51, Graham Cox wrote: > >> On 13 Jan 2015, at 12:21 pm, Roland King wrote: >> >> Did you read the devforums thread I pointed you at a couple of weeks ago? > > > Umm, not sure Roland. I read the blog post by bbum about using Allocations, > which is the one you linked in

Re: Using AV Foundation to record m3u8 stream to disk

2014-12-15 Thread Kevin Meaney
I'm not certain if this is useful to you but Bob McCune on Twitter mentioned a new tech note about new avfoundation apis which specifically mentions reference movies. https://developer.apple.com/library/mac/technotes/tn2404/_index.html#//apple_ref/doc/uid/DTS40015060 I'd also recommend his boo

AVFoundation error messages when getting frames from video tracks

2014-12-12 Thread Kevin Meaney
I've got the following code snippet which is part of code that creates a CGImage. The CGImage is created but the last line of this code snippet triggers the output of an error message to the console. The self._movieAsset is an AVURLAsset created from a local file on disk. I've tried some variati

Re: Crash with ARC enabled on Xcode 6.1

2014-10-23 Thread Kevin Meaney
; Thanks, > Beinan > > > On Thu, Oct 23, 2014 at 5:18 AM, Kevin Meaney wrote: > > On 23 Oct 2014, at 00:34, Beinan Li wrote: > >> Oh! I did actually. >> >> The method I posted belongs to an ObjC object which is wrapped by a C++ >> object. >>

Re: Crash with ARC enabled on Xcode 6.1

2014-10-23 Thread Kevin Meaney
ks, > Beinan > > > On Wed, Oct 22, 2014 at 7:00 PM, Kevin Meaney wrote: > Your not creating a static C++ object anywhere are you? One that creates the > dictionary before main gets called by any chance? > > Kevin > > Sent from my iPhone > > > On 22

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Kevin Meaney
Your not creating a static C++ object anywhere are you? One that creates the dictionary before main gets called by any chance? Kevin Sent from my iPhone > On 22 Oct 2014, at 22:45, Beinan Li wrote: > > Note, the initial crashing function is merely translating a C++ enum to the > AVFoundation

Re: bundleForClass in Swift

2014-10-19 Thread Kevin Meaney
>> >> I think my other reply will make this a moot point, but since [NSBundle >> bundleForClass:] takes a Class, and you know what your class is, just pass >> it that, you don't have to reference self. >> >> [NSBundle bundleForClass:[MyGroovySubclass class]]; > > Sorry, I was conflating Obj-C

Re: Passing a swift function to objective-c

2014-10-18 Thread Kevin Meaney
vin On 18 Oct 2014, at 18:18, Kevin Meaney wrote: > Hi Roland, > > Thanks for the followup. I've created a proper git rep on github rather than > just a gist. Most of my github reps seem to be this kind of mini > demonstration project and I was trying to avoid yet anothe

Re: Passing a swift function to objective-c

2014-10-18 Thread Kevin Meaney
Hi Roland, Thanks for the followup. I've created a proper git rep on github rather than just a gist. Most of my github reps seem to be this kind of mini demonstration project and I was trying to avoid yet another one. https://github.com/SheffieldKevin/swift-objectivec > What version of Xcode a

Re: Passing a swift function to objective-c

2014-10-17 Thread Kevin Meaney
Thanks Roland. On 17 Oct 2014, at 00:20, Roland King wrote: > >> On 17 Oct 2014, at 6:13 am, Kevin Meaney wrote: >> >> Hi, >> >> I'm beginning to feel this above my pay grade as I can't seem to work it out. >> >> I have a framework i

Passing a swift function to objective-c

2014-10-16 Thread Kevin Meaney
Hi, I'm beginning to feel this above my pay grade as I can't seem to work it out. I have a framework in Objective-C. I've been writing some tests for it, and to make life fun I've been writing the tests in Swift. I have a property of a class in the objective-c framework declared like so: @prop

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Kevin Meaney
Hi Howard, I tried to capture some of my interpretation of apple's documentation about ARC into a blog post which you might find useful. Note also the links to 2 other blog posts which I would recommend. http://blog.yvs.eu.com/2013/04/learning-arc/ I did a followup blog post, but it is mostly

Re: Concurrent tasks are getting hung up

2014-10-10 Thread Kevin Meaney
On 10 Oct 2014, at 17:40, Scott Ribe wrote: > On Oct 10, 2014, at 10:20 AM, Kevin Meaney wrote: > >> Now I've been optimizing to maximize throughput for processing image files... > > Things depend VERY much on what exactly you're doing. I've optimized for

Re: Concurrent tasks are getting hung up

2014-10-10 Thread Kevin Meaney
On 10 Oct 2014, at 16:27, Jim Crate wrote: > On Oct 10, 2014, at 11:00 AM, Kyle Sluder wrote: > >>> On Oct 10, 2014, at 6:42 AM, Steve Mills wrote: >>> >>> I've only created one NSOperationQueue and added many NSInvocationOperation >>> to it. >> >> NSOperationQueue works by dispatching you

Re: iOS Category to match OS X category

2014-10-07 Thread Kevin Meaney
as a name and a filter attribute. This way I get the behaviour I need and it works for both iOS and OS X. Nothing clever about it but it's nice having a common solution for both. Kevin On 7 Oct 2014, at 16:00, Jens Alfke wrote: > >> On Oct 7, 2014, at 1:09 AM, Kevin Meaney wrote

iOS Category to match OS X category

2014-10-07 Thread Kevin Meaney
This is more of an objective-c question than Cocoa, but I'm getting no traction on the objective-c devforums discussion list. I've got a OSX Framework that I'm updating to to also work on iOS. In the Framework I take advantage of the name property added to the CIFilter class by the category CA

Re: Class Introspection with class_copyMethodList and class methods.

2014-08-26 Thread Kevin Meaney
I think you might need objc_getMetaClass. See https://github.com/nst/RuntimeBrowser/blob/master/model/ClassDisplay.m For how it is used. Kevin On 26 Aug 2014, at 15:06, Alex Zavatone wrote: > I've been using the obj runtime to dump class methods, protocols, Ivars and > properties for documen

Re: How to make a LaunchAgent

2014-08-11 Thread Kevin Meaney
> You’re not supposed to start it - launchd/XPC services is supposed to start > it for you. You’re supposed to register it as a LaunchAgent/Daemon, creating > the launchd.plist file and when you need the service, it starts and when you > don’t, it’s stopped again. I keep reading this is all par

Re: Talking to other apps

2014-08-04 Thread Kevin Meaney
On 4 Aug 2014, at 22:49, Kyle Sluder wrote: > On Mon, Aug 4, 2014, at 04:17 PM, Uli Kusterer wrote: >> Well, what other communication mechanisms are there for talking between >> sandboxed apps ... ? I *did* call it a last-ditch thing. > > XPC and Apple Events (as long as your sdef uses access g

Re: Talking to other apps

2014-08-04 Thread Kevin Meaney
When you say app-friend, what do you mean? Another application? An XPC service? Some other kind of service? If your App is sandboxed and the service is not an xpc service embedded in your application then I think your pretty much out of luck. Kevin On 4 Aug 2014, at 07:54, Gerriet M. Denkmann

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
calling of draw rect within a view hierarchy may not apply. Are there other issues that will hurt me when drawing directly? Kevin On 18 Jun 2014, at 17:47, Kyle Sluder wrote: > On Wed, Jun 18, 2014, at 09:01 AM, Kevin Meaney wrote: >> Drawing happens when I receive an xpc message c

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
> This is NOT OK: > > - (void)handleIncomingDrawCommand:(id)drawCommand { > CGContextRef cgContext = [[NSGraphicsContext currentContext] > graphicsPort]; > ImmediatelyPerformDrawCommand(drawCommand, cgContext); // NO! > } Bugger, that is exactly what I'm doing. Basically the tool is intended

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
SonOfGrab displays in the composited image window the correct image after following the same steps. Kevin On 18 Jun 2014, at 17:01, Kevin Meaney wrote: > On Jun 18, 2014, at 8:36 AM, Kevin Meaney wrote: >>> >>> The sequence of events are: >>> >>>

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
On Jun 18, 2014, at 8:36 AM, Kevin Meaney wrote: >> >> The sequence of events are: >> >> 1. Drag window so that it is partially offscreen. >> 2. Draw into the window where part of the drawing happens in the part of the >> window that is offscreen. > &g

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
. 4. Take a snapshot of the window. 5. Save the snapshot to an image file. 6. Note that the snapshot is missing the part of the drawing that was drawn offscreen, but was visible after step 3. Kevin On 18 Jun 2014, at 16:30, Kyle Sluder wrote: >> On Jun 18, 2014, at 8:24 AM, Kevin Meaney

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
Apologies, The e-mail with the code went out before I was finished editing. The code shown is that taking the screen capture. But what is captured is not what I see in the window. Kevin On 18 Jun 2014, at 16:24, Kevin Meaney wrote: >> Not really. >> >> Can

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
> Not really. > > Can you show some code? > dictArray = CGWindowListCopyWindowInfo(kCGWindowListOptionIncludingWindow, (CGWindowID)[self._window windowNumber]); if (dictArray && (CFArrayGetCount(dictArray) > 0)) windowDict = CFArrayGetValu

Taking screen shots

2014-06-18 Thread Kevin Meaney
Actually just window shots. I feel like I've been fighting with the screen shot code, and that it shouldn't be this difficult. I get past one problem only to find another. My most recent seems intractable. If drawing to the window happens when the window is not completely on screen and if you

Re: Drag and drop onto BSD command line tool?

2014-05-17 Thread Kevin Meaney
I think an applescript droplet, using the "on open" call which then calls "do shell script" with the path to your command and the file that is dropped on it. Kevin On 18 May 2014, at 00:14, Bob Sabiston wrote: > Hello, > > I have a little console app written in C, one which takes a filename

Re: Problem with distributed objects in GUI cocoa apps

2014-04-30 Thread Kevin Meaney
Hi Costas, I'd be interested in hearing the results of you following up NSXPCConnection. When I read through the documentation about a year ago, it is focussed around providing a xpcservice which is a bundled executable within an application, and the application communicates with it using NSXPC

Re: ARC Retain Cycles

2014-04-21 Thread Kevin Meaney
On 21 Apr 2014, at 21:09, Andy Lee wrote: > > The solution is to use a weak reference for one of the properties in the > cycle. In general, if one object conceptually "owns" the other, then the > "owning" object uses a weak reference and the "owned" object uses a strong > one. For example, a

Re: What the actual heck?

2014-04-16 Thread Kevin Meaney
I have received the same e-mail also with a IP starting with 17. Kevin On 16 Apr 2014, at 05:25, Kyle Sluder wrote: > On Tue, Apr 15, 2014, at 09:19 PM, Bryan Vines wrote: >> Hi folks. >> >> So I just got a “Mailing list removal confirmation notice” which said the >> list had received a reques

Re: Retain count in non ARC

2014-04-07 Thread Kevin Meaney
I thought the behaviour was different between iOS and MacOS. On iOS nonatomic was the default and atomic on OS X. Kevin Sent from my iPhone On 7 Apr 2014, at 05:28, Graham Cox wrote: > > On 7 Apr 2014, at 1:58 pm, Ben Kennedy wrote: > >> t is for these two reasons that, from years of condi

Re: Preparation for doing a bug report for CIPageCurlTransition

2014-03-31 Thread Kevin Meaney
Your comments have been really helpful. I've done two things to get everything to work: Firstly, I turned my triangle upside down, and I set alpha for black at 0.7 and for white 0.3. Now it is clear that everything works as it should. Many Thanks. Kevin On 31 Mar 2014, at 20:43, Bill Monk w

Re: Core animation layers work on 10.7 but not 10.8 or 10.9

2014-03-31 Thread Kevin Meaney
I think this problem might go beyond Core Animation, unless NSAnimation is using CoreAnimation under the hood. Apple's sample code Image Transition and Cocoa Slides both crash when built using Xcode 5.1 and run on 10.9.2. But built apps that apple provides with the sample code still work on 10.

Re: Preparation for doing a bug report for CIPageCurlTransition

2014-03-31 Thread Kevin Meaney
Thanks for your input again. On 31 Mar 2014, at 05:38, Graham Cox wrote: > OK, I dug out the source code - it's a very old piece of work from when Core > Image filters were first available. I'm definitely using Curl without a > shadow. > > But, digging into the code,here's the thing - the imag

Re: Preparation for doing a bug report for CIPageCurlTransition

2014-03-30 Thread Kevin Meaney
e same image as the front it > won't work? > > --Graham > > > On 31 Mar 2014, at 1:54 am, Kevin Meaney wrote: > >> No matter how many different ways I look at my code I can't see what I'm >> doing wrong. So now I've distilled down to

Preparation for doing a bug report for CIPageCurlTransition

2014-03-30 Thread Kevin Meaney
No matter how many different ways I look at my code I can't see what I'm doing wrong. So now I've distilled down to its essence the using of the CIPageCurlTransition CoreImage filter. The problem is that the inputBacksideImage value option for the CIPageCurlTransition filter doesn't appear to w

Re: Having problems with the CoreImage CIPageCurlTransition filter

2014-03-28 Thread Kevin Meaney
Apologies, I've just tried this using the CIPageCurlWithShadowTransition filter and it works. It is just the non shadow one that doesn't work. Kevin On 28 Mar 2014, at 21:59, Kevin Meaney wrote: > Hi, > > I've setup a project for working with the CoreImage transi

Having problems with the CoreImage CIPageCurlTransition filter

2014-03-28 Thread Kevin Meaney
Hi, I've setup a project for working with the CoreImage transition filters and I've been going through making sure they work, and apart from the last 2 they work. I can't get the backside image to appear on the back of the page being turned over for the (CIPageCurlTransition, CIPageCurlWithShad

Re: GIF frame duration

2014-03-25 Thread Kevin Meaney
If AppKit is using CoreGraphics for reading/writing GIF files then you might have hit the same issue I did. http://blog.yvs.eu.com/2013/10/creating-gif-animations-using-coreimagequartz/ Kevin On 25 Mar 2014, at 16:10, Andreas Mayer wrote: > > Am 25.03.2014 um 16:58 schrieb Andreas Mayer : >

Re: Image without profile gets an sRGB profile on Mavericks

2014-03-23 Thread Kevin Meaney
I read somewhere that this change was part of Mavericks. I can't track that reference down right now, but I don't think Apple would consider it an error. Kevin On 23 Mar 2014, at 18:14, Leonardo wrote: > I create a jpg RGB image with Photoshop "without" any icc profile. > I import it in my app

Re: Best way to composite/tile multiple CGImages to one image

2014-03-23 Thread Kevin Meaney
I've experimented with trying to get the best performance I can with various different approaches by building a command line tool that creates a cover sheet of frame grabs from a movie file. I've blogged about my attempts here: http://blog.yvs.eu.com/2014/03/ssd-versus-hdd-movie-frame-grabs-and-

Re: Getting a serial queue when asking for a concurrent one

2014-03-20 Thread Kevin Meaney
I forgot to mention I'm building against the 10.9 SDK and targeting 10.9 as a minimum. Kevin On 20 Mar 2014, at 20:05, Kevin Meaney wrote: > I'm doing: > > myQueue = dispatch_queue_create("myque", DISPATCH_QUEUE_CONCURRENT); > dispatch_set_target_queue(myQue

Getting a serial queue when asking for a concurrent one

2014-03-20 Thread Kevin Meaney
I'm doing: myQueue = dispatch_queue_create("myque", DISPATCH_QUEUE_CONCURRENT); dispatch_set_target_queue(myQueue, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)); When I hit a breakpoint in the debugger in when running in myQue I'm informed that the queue "myque" is a serial que

Re: Best way to composite/tile multiple CGImages to one image

2014-03-19 Thread Kevin Meaney
On 18 Mar 2014, at 14:22, Jim Crate wrote: > > I would start with something like this: > > CIImage *img = [CIImage emptyImage]; > for … { > // calculate tile position from index, create NSAffineTransform for > scaling/translating > CGImageRef tileRef = // get image from AV framework

generateCGImagesAsynchronouslyForTimes:completionHandler

2014-03-18 Thread Kevin Meaney
The discussion for this AVAssetImageGenerator method mentions that this method uses an efficient "batch mode" to get image in time order. What I don't see any info on, is whether the completion handler is called on the same queue as the one from which generateCGImagesAsynchronouslyForTimes:comp

Re: Best way to composite/tile multiple CGImages to one image

2014-03-08 Thread Kevin Meaney
On 8 Mar 2014, at 06:55, Trygve Inda wrote: >> >> On 8 Mar 2014, at 5:02 pm, Trygve Inda wrote: >> >>> This is slower by about 15%. :( > > Interestingly if I call: > > CGContextSetInterpolationQuality ([context graphicsPort], > kCGInterpolationNone); > > It results in 10% slower processing

Re: Draw image within a NSBezierPath with no border

2014-03-06 Thread Kevin Meaney
I'd try clipping before drawing the fill, rather than after. Kevin On 6 Mar 2014, at 16:34, Leonardo wrote: > Hi, I have an oval NSBezierPath path. I fill it with a blue color, > then I draw an image within the same path. And I can still see a blue tiny > border around the image. I would expect

Re: Issues with CIFilters and CALayers

2014-02-27 Thread Kevin Meaney
ck). It > provides a very nice effect for drawing attention to specific areas. > > > On 2/27/14 9:42 AM, "Kevin Meaney" wrote: > >> First a note. The name property is declared as a CACIFilterAdditions in >> CACIFilterAdditions.h. >> >> I

Re: Issues with CIFilters and CALayers

2014-02-27 Thread Kevin Meaney
First a note. The name property is declared as a CACIFilterAdditions in CACIFilterAdditions.h. I think you will need to draw the CIImage to your CIContext and then generate a CGImage to capture its state for future reference and then generate a new CIImage from the CGImage. I believe the CIImag

Re: CIAreaMaximum filter not working

2014-02-26 Thread Kevin Meaney
t at least I have something that works even thoug I lose some dynamic range. Kevin On 26 Feb 2014, at 12:50, Kevin Meaney wrote: > I've written a command line routine that compares two image files, in the > hope of determining if the two files are different. Basically the tool onl

Re: exporting image files to disk using CGImageDestination

2014-02-26 Thread Kevin Meaney
This has fixed itself. I don't know how or why. But after installing 10.9.2 and rebooting the tiff files with varying alpha values look the same as png files. I don't think it was the update to 10.9.2 but I've got no proof, but instead I think it is related to the fact that I've occasionally had

CIAreaMaximum filter not working

2014-02-26 Thread Kevin Meaney
I've written a command line routine that compares two image files, in the hope of determining if the two files are different. Basically the tool only compares whether the dimensions are different or whether the pixel values are sufficiently different. So the routine has a distance option which i

Re: exporting image files to disk using CGImageDestination

2014-02-25 Thread Kevin Meaney
On 24 Feb 2014, at 18:59, Kevin Meaney wrote: > On 24 Feb 2014, at 18:40, David Duncan wrote: >> >> How are you generating these images? Specifically, the CGImageRef you pass >> to CGImageDestination and the pixels backing it. >> >> PNG does not store premul

Re: exporting image files to disk using CGImageDestination

2014-02-24 Thread Kevin Meaney
On 24 Feb 2014, at 18:40, David Duncan wrote: > On Feb 24, 2014, at 10:25 AM, Kevin Meaney wrote: >> I'd already done that, but doing it again made me realize that the problem >> is 100% associated with the alpha channel. Where the pixels are fully opaque >> everyt

Re: exporting image files to disk using CGImageDestination

2014-02-24 Thread Kevin Meaney
On 24 Feb 2014, at 18:04, Bill Dudney wrote: > > Make sure that what you are looking at is what you think you are looking at. > When you look at it in Preview is it being scaled? If so then the default > scaling algorithm in Preview for TIFF might be 'fast but ugly’ (I don’t know, > just gues

Re: exporting image files to disk using CGImageDestination

2014-02-24 Thread Kevin Meaney
On 24 Feb 2014, at 18:08, Sandy McGuffog wrote: > You should not be seeing worse image quality for TIFF unless very different > options are being used in each case. Can you tell what about the image > quality is worse? That was my assumption which is why I was confused. As per my reply to Bill

Re: exporting image files to disk using CGImageDestination

2014-02-24 Thread Kevin Meaney
On 24 Feb 2014, at 17:21, Mike Abdullah wrote: > On 24 Feb 2014, at 17:00, Kevin Meaney wrote: >> I've written a command line tool that takes an image file (when testing I'm >> using JPEG files) and applies a custom CIFilter (a naive chroma key filter >> I'

exporting image files to disk using CGImageDestination

2014-02-24 Thread Kevin Meaney
I've written a command line tool that takes an image file (when testing I'm using JPEG files) and applies a custom CIFilter (a naive chroma key filter I've written) and saves a file to disk. Sampling the command line tool when processing files shows it is spending 90% of its time writing the png

Writing a custom core image filter part 2

2014-02-23 Thread Kevin Meaney
In the CoreImage Programming guide on the discussion about writing a custom filter one of the steps described it to write a custom attributes method called "customAttributes". I used as a template of what I needed to do the customAttributes method implemented in Apple's sample code for AVGreenS

Writing a core image custom filter

2014-02-23 Thread Kevin Meaney
Apologies for the cross posting from quartz-dev. But it seems these days that it is hard to work out which forum, lists/devforum and then which of the discussions to then post. I've been playing with creating a core image filter for OS X. I've got simple chroma key filter working as I would lik

Re: 6.1.6 for iPhones?

2014-02-23 Thread Kevin Meaney
From the comments I've seen iOS 7 is slower than iOS 6 which on my iPhone 4 is already sluggish. I'm not sure I'm happy with the state of affairs Apple has left me in. Kevin On 23 Feb 2014, at 19:27, Clark Smith Cox III wrote: > > On Feb 22, 2014, at 6:58 PM, Rick Mann wrote: > >> There's

Re: ARC and autorelease pools

2014-02-17 Thread Kevin Meaney
Thanks to Marcel, John McCall, and Clark Smith Cox III for addressing the question I was trying to ask, apologies to others that the question was unclear. So it seems that because ARC provides compatibility between ARC and non-ARC code unlike how garbage collection worked with duplicated framewo

Re: ARC and autorelease pools

2014-02-16 Thread Kevin Meaney
On 16 Feb 2014, at 17:06, Jens Alfke wrote: > On Feb 16, 2014, at 5:27 AM, Kevin Meaney wrote: > >> Is the only reason for interoperability with manual retain-release code? > > For backward compatibility. Nearly every piece of existing Cocoa code uses > these methods, s

ARC and autorelease pools

2014-02-16 Thread Kevin Meaney
I've realized that my understanding of ARC is not as good as I thought it was. So I'll be asking couple of questions. With ARC I don't understand why autorelease pools are needed anymore except for with objects passed by reference. What I mean by that is that class methods like: NSString *mySt

  1   2   >