ToolTips for Matrix Cells

2013-11-30 Thread Gerriet M. Denkmann
I have a Matrix containing ButtonCells. In IB I have set a ToolTip for each ButtonCell. But when I hover the mouse over these cells, nothing is shown. When I set a tooltip for the matrix, it will be shown - but this is of no interest to me. Is there a way to show the ButtonCell-ToolTips? Gerri

Download fileSystem data

2013-11-30 Thread Leonardo
Hi, actually I ask a remote machine for contentsOfDirectoryAtPath Then for each file I ask for attributesOfItemAtPath And check the NSFileType to verify whether the file is NSFileTypeDirectory NSFileTypeRegular NSFileTypeSymbolicLink Then I check isFilePackageAtPath kLSI

Re: Download fileSystem data

2013-11-30 Thread Stephen J. Butler
Have you profiled your code to see what calls exactly are taking the most time? I have a feeling it's these: isFilePackageAtPath kLSItemInfoIsInvisible kFSNodeLockedMask kFSCatInfoCreateDate kFSCatInfoContentMod kFSCatInfoBackupDate kFSCatInfoAccessDate And parsing "ls

Re: Fast hash of NSData?

2013-11-30 Thread Graham Cox
On 30 Nov 2013, at 12:41 am, Kyle Sluder wrote: > That’s not a good idea. If the file on disk changes out from under you, the > cache no longer reflects the data. That can’t happen - the image data is embedded in the file stream at the moment, not held as a separate file. While I intend to ch

Re: Fast hash of NSData?

2013-11-30 Thread Graham Cox
On 30 Nov 2013, at 4:29 am, Gary L. Wade wrote: > If it is possible to compare the attributes of your file besides length, such > as modified date, created date, inode, etc., then you might be able to > further catch the cases where the length is the same but the data changed is > large enoug

Re: Download fileSystem data

2013-11-30 Thread Ken Thomases
On Nov 30, 2013, at 4:08 AM, Stephen J. Butler wrote: > Have you profiled your code to see what calls exactly are taking the most > time? I have a feeling it's these: > >isFilePackageAtPath >kLSItemInfoIsInvisible >kFSNodeLockedMask >kFSCatInfoCreateDate >kFSCatInfoContentMod

NSShadowAttributeName doesn't scale

2013-11-30 Thread Leonardo
Hi, in my NSTextView I have added the NSShadowAttributeName to the selected text. It works well, I can quite see the shadow "one" pixel under the text, the blur... Perfect. But when I zoom in the NSTextView, I see a bigger text but the shadow doesn't scale with the text. The shadow is still "one" p

Re: Download fileSystem data

2013-11-30 Thread Leonardo
Thank you Ken. That sounds really promising. I will tell you about the results. With the old and the new method. Thanks! Regards -- Leonardo Da: "Stephen J. Butler" Data: Sat, 30 Nov 2013 04:08:23 -0600 A: Leonardo Cc: Cocoa Development Oggetto: Re: Download fileSystem data Have you profile

Re: Fast hash of NSData?

2013-11-30 Thread Gary L. Wade
Getting the attributes of a file is a very fast operation provided you use the right calls; all of that information is in its catalog and should require at most one block read and at least a lookup in an OS-related cache. If you are accessing the file system across a network (I doubt it from your

Re: NSShadowAttributeName doesn't scale

2013-11-30 Thread Graham Cox
On 30 Nov 2013, at 2:54 pm, Leonardo wrote: > In facts, the NSShadow manual reports: > "rotations, translations and other transformations of the current > transformation matrix (the CTM) do not affect the resulting shadow." > > So, how to modify the NSShadowAttributeName accordingly to the view

Re: Fast hash of NSData?

2013-11-30 Thread Mike Abdullah
On 30 Nov 2013, at 10:37, Graham Cox wrote: > > On 30 Nov 2013, at 12:41 am, Kyle Sluder wrote: > >> That’s not a good idea. If the file on disk changes out from under you, the >> cache no longer reflects the data. > > That can’t happen - the image data is embedded in the file stream at the

Re: Fast hash of NSData?

2013-11-30 Thread Scott Ribe
On Nov 30, 2013, at 3:51 PM, Mike Abdullah wrote: > Anything short of a cryptographic hash is unsuitable for you here. No, cryptographic or not is irrelevant. Good non-cryptographic hashes are no more likely to have collisions on legitimate input, the only thing a cryptographic hash adds to th