The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Scripting Bridge & NSColor Thread Tools Search this Thread Display Modes
So, I'm still fiddling with Scripting Bridge, and have managed to create objects (woohoo!), but I can't get the colors set for some reason. I've tried setting the color with (these are all in the NSDictionary I pass to the object for properties:

Code:
[NSColor blackColor]
That fails with the error:
-getRed:green:blue:alpha: not defined for the NSColor NSCalibratedWhiteColorSpace 0 1; need to first convert colorspace. so I tried:

Code:
[[NSColor greenColor] colorUsingColorSpaceName:NSDeviceRGBColorSpace], @"strokeColor"
and:

Code:
[NSColor colorWithDeviceRed:0 green:1 blue:0 alpha:0], @"strokeColor"
Code:
[NSColor colorWithCalibratedRed:0 green:1 blue:0 alpha:0], @"strokeColor"

all of which result in a black stroke color -- no matter what I try, it's always black. I've been unable to alter the fill and gradient colors as well. All of the other properties I set (size, origin, etc) are working.

Help!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting bridge: crash when trying to get child tasks of a task amorya OmniFocus Extras 8 2013-11-10 05:00 AM
Problem Using Scripting Bridge and OmniGraffle pixel OmniGraffle General 1 2009-12-03 08:52 AM
Scripting Bridge & OOP namedStyles oopFan AppleScripting Omni Apps 0 2008-11-03 02:46 PM
Export issue / Modify the selection in a Document via AppleScript / Scripting Bridge Scifer_2008 OmniGraffle General 0 2008-10-08 06:06 AM
Problems using Scripting Bridge and OmniFocus 2shortplanks OmniFocus Extras 8 2008-08-09 09:35 PM


All times are GMT -8. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.