Re: Converting colorspace of a CGColor

2015-04-04 Thread Graham Cox
> On 5 Apr 2015, at 12:19 pm, edward m taffel wrote: > > perhaps I was unclear: if a «conversion» is desired, & by this I mean a > conversion performed by a cmm That isn't quite what I meant by conversion, though it may well end up doing what I want, at least on the Mac. What I mean is that

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 s

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 s

Re: Converting colorspace of a CGColor

2015-04-04 Thread Kyle Sluder
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 Sluder _

Re: Converting colorspace of a CGColor

2015-04-04 Thread Graham Cox
> On 4 Apr 2015, at 8:13 pm, edward m taffel wrote: > > why don't you just use cocoa? because NSColor isn't available on iOS. Do keep up... --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Where are my bytes?

2015-04-04 Thread Gerriet M. Denkmann
> On 4 Apr 2015, at 17:21, Ken Thomases wrote: > > On Apr 4, 2015, at 4:23 AM, Gerriet M. Denkmann wrote: > >> When I look at " /Library/Dictionaries/Apple >> Dictionary.dictionary/Contents/Info.plist" in Finder, it shows a preview and >> says 5 kB. Ok. >> >> But: Finder → FIle → Get Info s

Re: Where are my bytes?

2015-04-04 Thread Uli Kusterer
IIRC file compression saves the compressed file data in a file’s resource fork. Your stat call probably only sees the data fork. Other sources for seemingly incongruent numerics could be: -> Finder displays hard disk bytes in SI-style units (i.e. 1000 bytes == 1 kilobyte) like hard disk manufac

Re: Where are my bytes?

2015-04-04 Thread Michael Crawford
To expand on what Ken said: > And lstat shows: > st_size = 4893 (file size, in bytes) > st_blocks = 0 (blocks allocated for file) > st_flags = 0x20 (user defined flags for file) I think this may be the result of Dominic Giampaolo hiring on with Apple after Be, Inc. fo

Re: Preventing Document from closing

2015-04-04 Thread Markus Spoettl
Hi Quincey, On 04/04/15 10:16, Quincey Morris wrote: [...] [..life saving code snipped..] [...] The first branch of the ‘if’ statement is the code you want, that prevents the document from closing. Note that it doesn’t involve a separate method. Rather, it just invokes the supplied selector but

Re: Where are my bytes?

2015-04-04 Thread Ken Thomases
On Apr 4, 2015, at 4:23 AM, Gerriet M. Denkmann wrote: > When I look at " /Library/Dictionaries/Apple > Dictionary.dictionary/Contents/Info.plist" in Finder, it shows a preview and > says 5 kB. Ok. > > But: Finder → FIle → Get Info says: > 4,893 bytes (Zero bytes on disk) > > And lstat shows:

Re: Where are my bytes?

2015-04-04 Thread Gerriet M. Denkmann
> On 4 Apr 2015, at 16:46, Michael Crawford wrote: > > Could your filesystem be corrupt? Run "Verify Disk" under "First Aid" > in Disk Utility. Seems to be a 10.6 Snow Leopard feature - see Gerriet. > Michael David Crawford, Consulting

Re: Where are my bytes?

2015-04-04 Thread dangerwillrobinsondanger
Finder calculates differently. More "user friendly" Sent from my iPhone > On 2015/04/04, at 18:23, Gerriet M. Denkmann wrote: > > When I look at " /Library/Dictionaries/Apple > Dictionary.dictionary/Contents/Info.plist" in Finder, it shows a preview and > says 5 kB. Ok. > > But: Finder → FIl

Re: Where are my bytes?

2015-04-04 Thread Michael Crawford
Could your filesystem be corrupt? Run "Verify Disk" under "First Aid" in Disk Utility. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Apr 4, 2015 at 2:

Where are my bytes?

2015-04-04 Thread Gerriet M. Denkmann
When I look at " /Library/Dictionaries/Apple Dictionary.dictionary/Contents/Info.plist" in Finder, it shows a preview and says 5 kB. Ok. But: Finder → FIle → Get Info says: 4,893 bytes (Zero bytes on disk) And lstat shows: st_size = 4893 (file size, in bytes) st_blocks = 0 (

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 >> colors

Re: Preventing Document from closing

2015-04-04 Thread Quincey Morris
On Apr 4, 2015, at 00:07 , Markus Spoettl wrote: > > and not as the documentation indicates > > document:shouldClose:contextInfo: > > Every time I try to make sense of this and the header comments, my head > starts spinning. It says that’s the *signature*, not the *selector*. The selector is

Preventing Document from closing

2015-04-04 Thread Markus Spoettl
Hi, in an NSDocument based application, is there a reliable way to prevent a document from closing and the app itself from terminating? I'm having a very difficult time understanding now -canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: is supposed to work. Contrary to the doc