Re: Where are my bytes hiding?

2016-05-05 Thread Gerriet M. Denkmann
> On 5 May 2016, at 13:13, Stephen J. Butler wrote: > > Those files are compressed by the filesystem. In HFS+/MacOS Extended that > means that the data fork is empty and the file contents are stored in the > resource fork or extended attributes structure. > > http://wiki.sleuthkit.org/index.p

Bind NSTableView to array of dictionaries in user defaults

2016-05-05 Thread Jerry Krinock
In an OS X app, I wanted to bind a table of objects, each represented by a dictionary, to an array of dictionaries in user defaults. So I bound the Content Array of the array controller to the 'values' of the shared user defaults controller with an arbitrary key path, which pleasantly became th

Progress bar problems on server persist

2016-05-05 Thread Steve Mills
A while back I started a thread about NSProgressIndicator locking up on a Mac with no monitor. The suggested fix was to change them to use timers instead of threads for animation. We thought that fixed it, but no, it's back. Any other ideas on how to fix this? We put in a workaround to not show

Re: Progress bar problems on server persist

2016-05-05 Thread Ken Thomases
On May 5, 2016, at 9:15 AM, Steve Mills wrote: > > A while back I started a thread about NSProgressIndicator locking up on a Mac > with no monitor. The suggested fix was to change them to use timers instead > of threads for animation. Where did the idea to use timers come from? > We thought t

Re: Progress bar problems on server persist

2016-05-05 Thread Steve Mills
On May 05, 2016, at 09:31 AM, Ken Thomases wrote: Where did the idea to use timers come from? From you, man! March 21. :) You also mentioned turning off the animation as one way of working around this problem. What's the best way to do that?   This doesn't look like the main thread. Why is any

Re: Progress bar problems on server persist

2016-05-05 Thread Ken Thomases
On May 5, 2016, at 9:55 AM, Steve Mills wrote: > > On May 05, 2016, at 09:31 AM, Ken Thomases wrote: > >> Where did the idea to use timers come from? > > From you, man! March 21. :) You also mentioned turning off the animation as > one way of working around this problem. What's the best way t

Re: Progress bar problems on server persist

2016-05-05 Thread Steve Mills
On May 05, 2016, at 10:07 AM, Ken Thomases wrote: Well, my only suggestion was to set usesThreadedAnimation to NO. It may be that that causes Cocoa to use a timer internally, but you shouldn't be doing anything explicit with a timer with respect to the progress indicator. Yes, we only did use

Re: Progress bar problems on server persist

2016-05-05 Thread Ken Thomases
On May 5, 2016, at 10:16 AM, Steve Mills wrote: > > On May 05, 2016, at 10:07 AM, Ken Thomases wrote: > >> Don't do that. You must always shunt such work to the main thread. > > Hmm. Has that always been the case with OS X and/or Cocoa? Yes. > I know an app should not do any drawing from any

Re: Where are my bytes hiding?

2016-05-05 Thread Jens Alfke
> On May 5, 2016, at 4:38 AM, Gerriet M. Denkmann wrote: > > The sum of all decmpfs in the folder is 4057 bytes - still no idea how Finder > gets its: “29 KB on disk” . Any file, even if empty, occupies at least one 4k disk sector. In this case I would guess there are 7 files in that director

Re: Progress bar problems on server persist

2016-05-05 Thread Steve Mills
On May 05, 2016, at 10:35 AM, Ken Thomases wrote: From : "If a secondary thread of an application wants to cause portion

Re: Progress bar problems on server persist

2016-05-05 Thread Alex Zavatone
On May 5, 2016, at 11:16 AM, Steve Mills wrote: > On May 05, 2016, at 10:07 AM, Ken Thomases wrote: > > Well, my only suggestion was to set usesThreadedAnimation to NO. It may be > that that causes Cocoa to use a timer internally, but you shouldn't be doing > anything explicit with a timer wi

Re: Bind NSTableView to array of dictionaries in user defaults

2016-05-05 Thread Quincey Morris
On May 5, 2016, at 06:44 , Jerry Krinock wrote: > > I’m disapointed that the “magic of Cocoa Bindings” does not seem to provide a > simple “code-less” solution to this simple requirement. Did I miss something? It’s never been possible to bind “through” a NSArray or NSSet. AFAICT, that’s what’

Re: Very basic need, very difficult to achieve.

2016-05-05 Thread Quincey Morris
(A postscript to this thread. I wasn’t sure which of the original posts to frame this as a reply to, so I decided to pick on Kyle.) On May 3, 2016, at 17:17 , Kyle Sluder wrote: > > Virtualization of recent versions of OS X is permitted on Apple-branded > hardware. That’s probably your best bet

Re: Where are my bytes hiding?

2016-05-05 Thread Greg Weston
> Second question: > Finder says about the containing folder: 11,239 bytes (33 KB on disk) for 9 > items > 11,239 = sum of TotalFileSizes of the 8 files in this folder. > But where do the “33 KB on disk” come from? 8 times “Zero bytes on disk” > should be zero, shouldn’t it? Surely "xxx on disk

Re: Where are my bytes hiding?

2016-05-05 Thread Martin Wierschin
> Those files are compressed by the filesystem. In HFS+/MacOS Extended that > means that the data fork is empty and the file contents are stored in the > resource fork or extended attributes structure. > > http://wiki.sleuthkit.org/index.php?title=HFS#HFS.2B_File_Compression Huh, that's interesti

Re: Where are my bytes hiding?

2016-05-05 Thread Charles Srstka
> On May 5, 2016, at 2:01 PM, Martin Wierschin wrote: > >> Those files are compressed by the filesystem. In HFS+/MacOS Extended that >> means that the data fork is empty and the file contents are stored in the >> resource fork or extended attributes structure. >> >> http://wiki.sleuthkit.org/ind

Re: Where are my bytes hiding?

2016-05-05 Thread Chris Ridd
> On 5 May 2016, at 20:01, Martin Wierschin wrote: > >> Those files are compressed by the filesystem. In HFS+/MacOS Extended that >> means that the data fork is empty and the file contents are stored in the >> resource fork or extended attributes structure. >> >> http://wiki.sleuthkit.org/index

Re: Where are my bytes hiding?

2016-05-05 Thread Gary L. Wade
Extended attributes have been part of the Macintosh operating system in a few different forms since 1984. Up until Mac OS 9, the only alternative was a resource fork. In Mac OS 9, named forks were introduced, although only data and resource were practically available, and under the Mac's Unixifi

Re: Where are my bytes hiding?

2016-05-05 Thread Jens Alfke
> On May 5, 2016, at 12:01 PM, Martin Wierschin wrote: > > Is there any way a user file might be compressed in such a way through normal > user actions? Yes, there are various user-level utilities for compressing files, like Clusters (http://clustersapp.com ). The `di

Re: Very basic need, very difficult to achieve.

2016-05-05 Thread Richard Charles
> On May 3, 2016, at 6:13 PM, Quincey Morris > wrote: > > In the end, I gave up on this and went to virtualization instead. VMWare was > what I chose, and it worked great, although it was a bit slow. I also thought > there was a way to run virtualization in OS X Server somehow, but I couldn’t

Re: Bind NSTableView to array of dictionaries in user defaults

2016-05-05 Thread Keary Suska
> On May 5, 2016, at 7:44 AM, Jerry Krinock wrote: > > In an OS X app, I wanted to bind a table of objects, each represented by a > dictionary, to an array of dictionaries in user defaults. > > So I bound the Content Array of the array controller to the 'values' of the > shared user defaults

Re: Very basic need, very difficult to achieve.

2016-05-05 Thread Alex Zavatone
On May 5, 2016, at 4:22 PM, Richard Charles wrote: > >> On May 3, 2016, at 6:13 PM, Quincey Morris >> wrote: >> >> In the end, I gave up on this and went to virtualization instead. VMWare was >> what I chose, and it worked great, although it was a bit slow. I also >> thought there was a way

Re: Progress bar problems on server persist

2016-05-05 Thread Graham Cox
> On 6 May 2016, at 1:35 AM, Ken Thomases wrote: > > Well, you're not supposed to call -setNeedsDisplay: from a background thread, > either. > > From >

Setting a prefs value at quit time

2016-05-05 Thread Graham Cox
I have a problem when my app quits on 10.9 (OK on 10.11): 0 __pthread_kill 10 1 abort 125 2 -[CFPrefsPlistSource alreadylocked_setValue:forKey:]174 3 -[CFPrefsSource setValue:forKey:] 69 4 +[CFPrefsSource withSourceForIdentifier:user:byHost:container:perf

Re: Setting a prefs value at quit time

2016-05-05 Thread Alex Zavatone
Isn’t there a sudden termination option to allow this for this exact purpose? Or would there be an application delegate method that would allow the application to quit? When a quit is issued, make sure that the can quit returns NO and after the prefs are written, change that value to YES and

Re: Setting a prefs value at quit time

2016-05-05 Thread Quincey Morris
On May 5, 2016, at 16:38 , Graham Cox wrote: > > If it’s NOT legal to write a prefs value at quit time, how is one supposed to > record persistent state that is only final by that time? Are you using an observer for NSApplicationWillTerminateNotification explicitly, or the applicationWillTermi

Re: Very basic need, very difficult to achieve.

2016-05-05 Thread Richard Charles
> On May 5, 2016, at 3:15 PM, Alex Zavatone wrote: > > Using VMWare Fusion 5.0.5, I've got Mac OS X 10.8.5, 10.9.x and Windows 7 > running in VMs without an issue. Can you run this application? “OpenGL Extensions Viewer" http://www.realtech-vr.com/glview/ I could never get an app that uses

Re: Setting a prefs value at quit time

2016-05-05 Thread Graham Cox
> On 6 May 2016, at 10:05 AM, Quincey Morris > wrote: > > On May 5, 2016, at 16:38 , Graham Cox wrote: >> >> If it’s NOT legal to write a prefs value at quit time, how is one supposed >> to record persistent state that is only final by that time? > > Are you using an observer for NSApplicat

Re: Bind NSTableView to array of dictionaries in user defaults

2016-05-05 Thread Jerry Krinock
Thank you, Keary. > On 2016 May 05, at 13:47, Keary Suska wrote: > > >> On May 5, 2016, at 7:44 AM, Jerry Krinock wrote: >> >> So I bound the Content Array of the array controller to the 'values' of the >> shared user defaults controller with an arbitrary key path, which pleasantly >> beca

Re: Very basic need, very difficult to achieve.

2016-05-05 Thread Charles Srstka
> On May 5, 2016, at 7:07 PM, Richard Charles wrote: > > >> On May 5, 2016, at 3:15 PM, Alex Zavatone wrote: >> >> Using VMWare Fusion 5.0.5, I've got Mac OS X 10.8.5, 10.9.x and Windows 7 >> running in VMs without an issue. > > Can you run this application? > > “OpenGL Extensions Viewer" >

Re: Very basic need, very difficult to achieve.

2016-05-05 Thread Richard Charles
> On May 5, 2016, at 6:07 PM, Richard Charles wrote: > > Can you run this application? > > “OpenGL Extensions Viewer" > > http://www.realtech-vr.com/glview/ > > I could never get an app that uses OpenGL to work with a virtual machine. > On May 5, 2016, at 8:16 PM, Charles Srstka wrote: >

Re: Very basic need, very difficult to achieve.

2016-05-05 Thread Charles Srstka
> On May 5, 2016, at 9:39 PM, Richard Charles wrote: > > >> On May 5, 2016, at 6:07 PM, Richard Charles wrote: >> >> Can you run this application? >> >> “OpenGL Extensions Viewer" >> >> http://www.realtech-vr.com/glview/ >> >> I could never get an app that uses OpenGL to work with a virtual