Hmm, I guess one should probably setup a conversion using CIColor to bridge between, looks like that could be done using all public methods (?). I don't know if there's some better way to do it or what.
On Jul 21, 2013, at 1:59 AM, Achim Breidenbach <[email protected]> wrote: > Hi, > > I tested the plugin with 10.7.5. Here are my results: > > - It won't load in 32-bit mode. > - It crashes in 64-bit mode when opening the provided test qtz. (the editor > opens, the viewer opens and shows Bart Simpson but then it crashes > immediately) > > Here is the stripped crashlog: > > Process: Quartz Composer [70898] > Path: /Applications/Quartz Composer.app/Contents/MacOS/Quartz > Composer > Identifier: com.apple.QuartzComposer.editor > Version: 4.6 (147) > Build Info: QuartzComposerEditor-147000000000000~10 > Code Type: X86-64 (Native) > Parent Process: launchd [154] > > PlugIn Path: /Library/Graphics/Quartz Composer > Plug-Ins/QCColourArt.plugin/Contents/MacOS/QCColourArt > PlugIn Identifier: com.chrisbirch.QCColourArt > PlugIn Version: 1.1 (1.0) > > Date/Time: 2013-07-21 07:48:27.912 +0200 > OS Version: Mac OS X 10.7.5 (11G63b) > Report Version: 9 > > Crashed Thread: 0 Dispatch queue: com.apple.main-thread > > Exception Type: EXC_BAD_ACCESS (SIGSEGV) > Exception Codes: 0x000000000000000d, 0x0000000000000000 > > VM Regions Near 0: > --> > __TEXT 000000010ca54000-000000010ca98000 [ 272K] r-x/rwx > SM=COW /Applications/Quartz Composer.app/Contents/MacOS/Quartz Composer > > Application Specific Information: > objc_msgSend() selector name: _cfTypeID > objc[70898]: garbage collection is OFF > > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > 0 libobjc.A.dylib 0x00007fff81a5ce90 objc_msgSend + 16 > 1 com.apple.CoreFoundation 0x00007fff8c8df480 CFGetTypeID + 240 > 2 com.apple.QuartzComposer 0x00007fff8c1e9885 -[QCPlugIn(Ports) > _setValue:forOutputPort:] + 232 > 3 com.chrisbirch.QCColourArt 0x000000010fa28f19 > -[QCColourArtPlugIn(Execution) execute:atTime:withArguments:] + 569 > 4 com.apple.QuartzComposer 0x00007fff8c1e5f67 -[QCPlugInPatch > execute:time:arguments:] + 143 > 5 com.apple.QuartzComposer 0x00007fff8c0e0fbd -[QCPatch(Private) > _renderAtTime:arguments:] + 145 > 6 com.apple.QuartzComposer 0x00007fff8c0e0f15 -[QCRenderingManager > addPatch:context:time:arguments:nextExecutionTime:] + 3273 > 7 com.apple.QuartzComposer 0x00007fff8c0df8a2 -[QCPatch(Private) > __execute:arguments:] + 918 > 8 com.apple.QuartzComposer 0x00007fff8c0df47b -[QCPatch(Private) > _execute:arguments:] + 2149 > 9 com.apple.QuartzComposer 0x00007fff8c0e0177 -[QCPort > _execute:arguments:] + 377 > 10 com.apple.QuartzComposer 0x00007fff8c0df30b -[QCPatch(Private) > _execute:arguments:] + 1781 > 11 com.apple.QuartzComposer 0x00007fff8c0dfee8 -[QCPatch(Private) > _executeSubpatches:arguments:] + 297 > 12 com.apple.QuartzComposer 0x00007fff8c0dfdb8 > -[QCPatch(Extensions) executeSubpatches:arguments:] + 57 > 13 com.apple.QuartzComposer 0x00007fff8c0dfd72 > -[QCPatch(Customization) execute:time:arguments:] + 41 > 14 com.apple.QuartzComposer 0x00007fff8c0dfcf1 > -[QCPatch(Customization) nextExecutionTimeForSubpatches:time:arguments:] + 167 > 15 com.apple.QuartzComposer 0x00007fff8c0dfc02 > -[QCPatch(Customization) nextExecutionTime:time:arguments:] + 73 > 16 com.apple.QuartzComposer 0x00007fff8c0dfb89 -[QCPatch(Private) > _nextExecutionTime:arguments:] + 665 > 17 com.apple.QuartzComposer 0x00007fff8c0df84e -[QCPatch(Private) > __execute:arguments:] + 834 > 18 com.apple.QuartzComposer 0x00007fff8c0df47b -[QCPatch(Private) > _execute:arguments:] + 2149 > 19 com.apple.QuartzComposer 0x00007fff8c0dd3a6 -[QCContext > nextExecutionTimeForPatch:time:arguments:] + 476 > 20 com.apple.QuartzComposer 0x00007fff8c0dd1c4 -[QCGraphicsContext > nextExecutionTimeForPatch:time:arguments:] + 39 > 21 com.apple.QuartzComposer 0x00007fff8c0dcfd3 -[QCOpenGLContext > nextExecutionTimeForPatch:time:arguments:] + 476 > 22 com.apple.QuartzComposer 0x00007fff8c19ad64 -[QCView > nextExecutionTime:arguments:] + 76 > 23 com.apple.QuartzComposer.editor 0x000000010ca63a9f 0x10ca54000 + 64159 > 24 com.apple.QuartzComposer 0x00007fff8c19a8c5 -[QCView > render:arguments:] + 450 > 25 com.apple.QuartzComposer 0x00007fff8c19b035 -[QCView > _renderTimer] + 396 > 26 com.apple.QuartzComposer 0x00007fff8c17188a _TimerCallback + 79 > 27 com.apple.CoreFoundation 0x00007fff8c925934 > __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 > 28 com.apple.CoreFoundation 0x00007fff8c925486 __CFRunLoopDoTimer + > 534 > 29 com.apple.CoreFoundation 0x00007fff8c905e11 __CFRunLoopRun + 1617 > 30 com.apple.CoreFoundation 0x00007fff8c905486 CFRunLoopRunSpecific > + 230 > 31 com.apple.HIToolbox 0x00007fff895182bf > RunCurrentEventLoopInMode + 277 > 32 com.apple.HIToolbox 0x00007fff8951f56d > ReceiveNextEventCommon + 355 > 33 com.apple.HIToolbox 0x00007fff8951f3fa > BlockUntilNextEventMatchingListInMode + 62 > 34 com.apple.AppKit 0x00007fff82dd9779 _DPSNextEvent + 659 > 35 com.apple.AppKit 0x00007fff82dd907d -[NSApplication > nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 > 36 com.apple.AppKit 0x00007fff82dd59b9 -[NSApplication run] > + 470 > 37 com.apple.QuartzComposer.editor 0x000000010ca569bd 0x10ca54000 + 10685 > 38 com.apple.AppKit 0x00007fff83051eac NSApplicationMain + > 867 > 39 com.apple.QuartzComposer.editor 0x000000010ca55cb8 0x10ca54000 + 7352 > > best, > > Achim Breidenbach > Boinx Software Lt.d. > > On 21.07.2013, at 01:42, George Toledo wrote: > >> Hmm, maybe that method is SPI in that context (it maybe appears to be that >> way in the docs), but it also looks like it may have been around since >> around 2007 in quartzcore, from some googling. As always, try to test. >> >> If anyone has 10.7 and can give the plugin a spin it would be nice if you >> can report back to list. >> >> On Jul 20, 2013, at 7:09 PM, "Chris (CoreGraphics) Wright" >> <[email protected]> wrote: >> >>> Careful with this -- it's possible this will interfere with existing >>> methods on OSs that have that method, and it'll be useless on OSs that >>> don't have that method (it won't associate with any of the state of the >>> NSColor object). It's likely this was SPI, in which case it'll work, but >>> it's pretty fragile. >>> >>> -- >>> Christopher Wright >>> [email protected] >>> >>> >>> On Jul 20, 2013, at 12:28 PM, George Toledo <[email protected]> wrote: >>> >>>> That's what I'm seeing - differences between the color port stuff/NSColor >>>> in 10.8 and previousā¦the ARC part is spurious. >>>> >>>> Haven't dealt with this before⦠>>>> >>>> Perhaps you can do something like this right after your imports in your >>>> QCColourArtPlugin.m or make a separate file and import that ala >>>> https://gist.github.com/msanders/707921 >>>> >>>> #import <AppKit/AppKit.h> >>>> >>>> @interface NSColor (CGColor) >>>> >>>> // >>>> // The Quartz color reference that corresponds to the receiver's color. >>>> // >>>> @property (nonatomic, readonly) CGColorRef CGColor; >>>> >>>> // >>>> // Converts a Quartz color reference to its NSColor equivalent. >>>> // >>>> + (NSColor *)colorWithCGColor:(CGColorRef)color; >>>> >>>> @end >>>> >>>> That said, I can't get your plugin to compile because I'm missing >>>> "Ports.plist" >>>> >>>> -gt >>>> >>>> On Jul 20, 2013, at 2:52 PM, "Chris (CoreGraphics) Wright" >>>> <[email protected]> wrote: >>>> >>>>> Are you just getting errors regarding NSColor? If not, can you post the >>>>> error messages you're receiving? >>>>> >>>>> I just see some NSColor stuff, and that's because -[NSColor CGColor] was >>>>> added in 10.8, so it wouldn't be available in 10.7. ARC complains about >>>>> this because it doesn't know how ownership works for the returned thing >>>>> since the method doesn't exist as far as it's concerned. >>>>> >>>>> https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html >>>>> >>>>> -- >>>>> Christopher Wright >>>>> [email protected] >>>>> >>>>> >>>>> On Jul 20, 2013, at 10:58 AM, Jonathan Hammond <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi guys i've got a QC plugin that works out the primary colours of an >>>>>> image like iTunes. I'm truing to build it for 10.7, each time i change >>>>>> the build targets I get ARC Semantic Issues, i'm not a Obj C guys and am >>>>>> very confused about how to fix this. Could anyone help >>>>>> >>>>>> The Source is located here >>>>>> https://dl.dropboxusercontent.com/u/31564678/QCColourArt%202.zip >>>>>> >>>>>> Much thanks >>>>>> >>>>>> J >>>>>> _______________________________________________ >>>>>> Do not post admin requests to the list. They will be ignored. >>>>>> Quartzcomposer-dev mailing list ([email protected]) >>>>>> Help/Unsubscribe/Update your Subscription: >>>>>> https://lists.apple.com/mailman/options/quartzcomposer-dev/christopher_wright%40apple.com >>>>>> >>>>>> This email sent to [email protected] >>>>> >>>>> _______________________________________________ >>>>> Do not post admin requests to the list. They will be ignored. >>>>> Quartzcomposer-dev mailing list ([email protected]) >>>>> Help/Unsubscribe/Update your Subscription: >>>>> https://lists.apple.com/mailman/options/quartzcomposer-dev/gtoledo3%40gmail.com >>>>> >>>>> This email sent to [email protected] >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Quartzcomposer-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com >> >> This email sent to [email protected] >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

