Re: Converting colorspace of a CGColor—part 2

2015-04-04 Thread edward m taffel


Sent from my iPhone

> On Apr 4, 2015, at 9:08 PM, Kyle Sluder  wrote:
> 
>> On Sat, Apr 4, 2015, at 03:13 AM, edward m taffel wrote:
>> I meant the ColorSync api (what did you think I meant?) but was not aware
>> iOS did not rely on ColorSync,
> 
> The ColorSync API has been deprecated on OS X since 10.6, and has never
> existed on iOS.

or link a 3rd party cmm.

so, what I meant was: conditionally compile for platform using nscolor on OS X, 
as you get it for free, & do what you have to on iOS. to use CGColor one must 
still conditionally compile the conversion based on platform:


> 
> --Kyle Sluder
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/etaffel%40me.com
> 
> This email sent to etaf...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Converting colorspace of a CGColor

2015-04-04 Thread edward m taffel


Sent from my iPhone

> On Apr 4, 2015, at 9:08 PM, Kyle Sluder  wrote:
> 
>> On Sat, Apr 4, 2015, at 03:13 AM, edward m taffel wrote:
>> I meant the ColorSync api (what did you think I meant?) but was not aware
>> iOS did not rely on ColorSync,
> 
> The ColorSync API has been deprecated on OS X since 10.6, and has never
> existed on iOS.
> 
> --Kyle Slude

there is a newer version which has been available since then [how should it be 
otherwise?]: please see the headers.

perhaps I was unclear: if a «conversion» is desired, & by this I mean a 
conversion performed by a cmm, one must set it up & submit it. on OS X this is 
via the ColorSync api. i surmise the iOS cmm is the same, or a lighter weight 
version, of the OS X cmm [if anyone knows more please enlighten us]. unless 
there is published api for negotiating the OS X cmm, one must write requisite 
code to perform the conversion or
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/etaffel%40me.com
> 
> This email sent to etaf...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Converting colorspace of a CGColor

2015-04-04 Thread edward m taffel


Sent from my iPhone

> On Apr 3, 2015, at 10:19 PM, Graham Cox  wrote:
> 
> 
>> On 4 Apr 2015, at 1:13 pm, Roland King  wrote:
>> 
>> That’s most definitely not what Graham is looking for. He’s looking for a 
>> way to convert colours programatically, and cross-platform iOS and OSX (no 
>> colorsync on iOS).

I meant the ColorSync api (what did you think I meant?) but was not aware iOS 
did not rely on ColorSync,

if you had not already done so, you might look at:
https://developer.apple.com/library/ios/technotes/tn2313/_index.html#//apple_ref/doc/uid/DTS40014694-CH1-ACTIVECOLORMGMTCOLORSYNC-HOW_DOES_COLORSYNC_WORK_

> That's right. In short, a CG equivalent to -[NSColor colorUsingColorspace:] 
> is what I need

why don't you just use cocoa?

> - I just need to ensure that colours that could originate as grays for 
> example, end up as RGBA colours, since I'm doing work directly on the four 
> components. Converting gray is easy enough actually, if I have to do that 
> myself, but it would be nice if there were a funciton that would work across 
> all possible colorspaces.
> 
> I thought Id' seen a CG function for this in the past, but I can't remember 
> where I saw it and I may be mistaken.
> 
> --Graham
> 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/etaffel%40me.com
> 
> This email sent to etaf...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Converting colorspace of a CGColor

2015-04-03 Thread edward m taffel
use ColorSync.

Sent from my iPhone

> On Apr 3, 2015, at 8:35 PM, Graham Cox  wrote:
> 
> Is there a way to convert a CGColor to a different colorspace? It's trivial 
> with NSColor, but I want to do the same at the lower CG level to keep the 
> code as portable as possible between iOS and Mac. I'm sure I've done this in 
> the past but I'm just not seeing the right function!
> 
> --Graham
> 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/etaffel%40me.com
> 
> This email sent to etaf...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

showing load progress for autosaved documents

2014-04-23 Thread edward m taffel
i’m attempting to show load progress for complex documents. my document class 
defines readFromURL & this seems the natural place to do this; however, for 
autosaved documents the progress window does not show until the document window 
shows (in the same instant, after the load is complete). i expect this is 
something to do w/ readFromURL being sent from a background thread; but, there 
must certainly be some way to flush the progress window. 

all/any suggestions greatly appreciated.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

mouse tracking outside a window & dock tracking area

2014-04-22 Thread edward m taffel
during mouse tracking it is often convenient to register movement outside view 
bounds. unfortunately, if the cursor is set to other than arrow, movement 
outside the bottom of a window may enter the dock’s tracking area causing the 
cursor to change to arrow for the duration of the loop. it is possible to 
inhibit the dock’s tracking area in the regular case w/ a 
setPresentationOptions bracket, e.g.

NSApplication* a_= [NSApplication sharedApplication];
NSApplicationPresentationOptions pre_opt= [a_ presentationOptions];

[a_ setPresentationOptions:NSApplicationPresentationHideDock];
// ... tracking code
[a_ setPresentationOptions:pre_opt];

however, this has no effect in full screen mode—the cursor is still set to 
arrow.

does anyone (else) feel 
setPresentationOptions:NSApplicationPresentationHideDock should obtain equal 
result for both modes? in particular, why is this setting ignored in full 
screen? does anyone have a workaround? 



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: unarchiving a font collection

2009-07-09 Thread edward m taffel
hello to anyone that took notice of this issue & appology to  
fontDescriptorsInCollection:


on further investigation i discovered, deficient descriptor-count  
return from  fontDescriptorsInCollection may be remedied by recreating  
the problem collection(s) (in Font Book); it appears the problem lies  
elsewhere.


thanks,
edward m taffel


On Jul 7, 2009, at 3:50 PM, edward m taffel wrote:


hello list,

as NSFontManager -fontDescriptorsInCollection is apparently  
unreliable, i would like to unarchive collections directly (it seems  
apple does not provide support for this): anyone had success with  
unarchiving a font collection?



thanks to all in advance,
edward m taffel






___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/etaffel%40operamail.com

This email sent to etaf...@operamail.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


unarchiving a font collection

2009-07-07 Thread edward m taffel

hello list,

as NSFontManager -fontDescriptorsInCollection is apparently  
unreliable, i would like to unarchive collections directly (it seems  
apple does not provide support for this): anyone had success with  
unarchiving a font collection?



thanks to all in advance,
edward m taffel






___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com