[OT] Forums for Web Development?

2016-02-15 Thread John Bartleson
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

How to search the list archives?

2013-03-24 Thread John Bartleson
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

Key-value coding dynamically-created arrays in NSTableView

2011-07-14 Thread John Bartleson
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

Re: Length of NSWindow's stringWithSavedFrame result?

2011-03-16 Thread John Bartleson
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

Length of NSWindow's stringWithSavedFrame result?

2011-03-07 Thread John Bartleson
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 {

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-02-05 Thread John Bartleson
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,

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-13 Thread John Bartleson
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,

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-13 Thread John Bartleson
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

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-10 Thread John Bartleson
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

NSUndoManager retain/release of arguments - ad infinitum

2011-01-09 Thread John Bartleson
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