Thanks, Graham.
On Mar 8, 2011, at 12:39 AM, Graham Cox wrote:
You could just make it bigger - it's a very transient piece of
memory on the stack (or, if that's a problem, just malloc and free a
chunk). Since getxattr allows you to pass in the max size of the
buffer, it's also safe from a
On 08/03/2011, at 4:38 PM, John Bartleson wrote:
> I'm suspicious, though, that the 50 bytes I've allowed for the
> string returned by getxattr in the second method above might not be enough on
> a multi-monitor
> system.
You could just make it bigger - it's a very transient piece of memory on
In my NSDocument-based app I'm saving and restoring the window frame
to/from an xattribute using
NSWindow's stringWithSavedFrame and setFrameFromString: methods.
During doc save in MyDocument.m I save the frame in an override of
setFileURL:
- (void)setFileURL:(NSURL *)absoluteURL
{
[supe