Blocked in NSFileCoordinator

2011-08-28 Thread Gerriet M. Denkmann
I have a document based app which collects data and updates its document. Works fine in Snow Leopard, hangs in Lion. At start it blocks (see sample at end of post). This initial hang can be avoided, if for the first 3 seconds after launch no saves are allowed. (Rather a crude hack). But even th

Re: Long delay of NSPopUpButton first click

2011-08-28 Thread Rimas M.
Well.. that worked. Generally. But those images must have transparent background. And as I have discovered, when dealing with text drawing, that causes loose of sub-pixels antialiasing. This is unacceptable. Will need to use NSAttributedString+attributedTitle way... Any hints on speeding up menu sh

Re: strategies for storing NSDocument additional meta-data

2011-08-28 Thread Martin Hewitson
Gary, many thanks. Your advice lead me to UKXattrMetadataStore which works perfectly for the small NSDictionary of settings I have. Thanks again, Martin On 28, Aug, 2011, at 04:35 PM, Gary L. Wade wrote: > Many applications use extended attributes (xattr) for similar purposes. The > oldest wa

Re: Removing the Versions Button

2011-08-28 Thread John Brayton
On Aug 28, 2011, at 11:12 AM, Mike Abdullah wrote: > If you could tell us why you want to do this, that would help somewhat. Hi Mike, My app backs up Google Apps data locally. I want to use Versions to provide a Time Machine view of prior backups. But some of the menu items (locking, deleting

Re: Removing the Versions Button

2011-08-28 Thread Fritz Anderson
On 28 Aug 2011, at 9:23 AM, John Brayton wrote: > I have a document-based app that supports Versions. I am trying to > remove the Versions menu (with "Lock", "Duplicate", "Revert to the > Last Opened Version", and "Browse All Versions...") that appears at > the top of the window. I can remove th

Re: Removing the Versions Button

2011-08-28 Thread Mike Abdullah
If you could tell us why you want to do this, that would help somewhat. On 28 Aug 2011, at 15:23, John Brayton wrote: > Hi, > > I have a document-based app that supports Versions. I am trying to > remove the Versions menu (with "Lock", "Duplicate", "Revert to the > Last Opened Version", and "Br

Re: strategies for storing NSDocument additional meta-data

2011-08-28 Thread Gary L. Wade
Many applications use extended attributes (xattr) for similar purposes. The oldest way that still works is to use the resource fork of a file, which is sometimes implemented as an xattr. In these cases, for those file systems that support them, they are intrinsically part of the same file. - Ga

Removing the Versions Button

2011-08-28 Thread John Brayton
Hi, I have a document-based app that supports Versions. I am trying to remove the Versions menu (with "Lock", "Duplicate", "Revert to the Last Opened Version", and "Browse All Versions...") that appears at the top of the window. I can remove the Versions button, but clicking on the title bar sti

strategies for storing NSDocument additional meta-data

2011-08-28 Thread Martin Hewitson
Dear list, I've been scratching my head for a while on this. Suppose you have an NSDocument app like TextEdit which just allows the user to edit a text file. Now suppose there are some additional state settings associated with the editor. These could dictate how the contents of the text file ar