After getting many great tips from this list over the years, I find myself
needing to switch gears and do some web development. I'm starting on a
server-based app that will be the front end to a SQL database that may grow to
be very large. Although it's easy to find info on the basic
It's important that we all check existing documentation before pestering this
list with a question.
I used to use the search capability in the Cocoa-dev list page
(https://lists.apple.com/mailman/listinfo/cocoa-dev), but that
disappeared at least a year ago, leaving only archive access to
Many of us are familiar with the use of key-value coding in
NSTableView and NSOutlineView data-source methods.
For example (from Key-Value Coding Programming Guide):
- (id) tableView:(NSTableView *)tableview
objectValueForTableColumn:(id)column
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
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
{
Sorry, I was busy and couldn't reply. Now it's time to finish this
thread.
Graham Cox said:
In the middle step, why should YOU worry about whether the undo
manager has retained 'descriptorsCopy'? It's not your responsibility
how that object works. It might have retained the object,
Thank you all for your comments. Because I think this is an important
topic (and because I'm stubborn)
I'm going to continue to beat it to death.
Because there were a number of issues brought up in the comments, let
me summarize them, with my
responses in line:
** Comment 1 (Graham Cox,
Graham: thanks for your comment and thanks for being patient with a
relative n00b. Hopefully we can
nail this topic down in a post or two.
You are not required to verify it. (Though you may do so using the
memory tracing tools). You only need to follow the rules, and
understand that the
Thanks for your replies. I'm hoping that the conclusion will help
others who are confused by the existing
documentation of MM in NSUndoManager. So here's what I'm doing:
My reference-counted, document-based app uses a table view. The table
view supports sorting by clicking in
the header. The
Can someone PUH-LEASE clear up the confusion re NSUndoManager
retaining/releasing arguments to prepareWithInvocationTarget:?
In various places in cocoa-dev and in referenced 'net articles, such
as here http://cocoadev.com/index.pl?NSUndoManagerTutorial
and here
10 matches
Mail list logo