Re: Simple menu-action question

2008-03-31 Thread Joel Norvell
Hi Rick, The Sketch example program (Developer->Examples->AppKit->Sketch) adds some menu commands. I used it as an example when I was puzzling out how to add a menu item with new commands and then handle those commands in my first app. Hope this helps, Joel _

Re: Simple menu-action question

2008-03-31 Thread Graham Cox
On 1 Apr 2008, at 9:29 am, Rick Mann wrote: Well, I guess it's a separate argument as to whether or not "Import" should be used instead of "Open". I tend to think of "Import" as being used to add to an existing document's data (creating one if none exists), and for data types that are not "

Re: Simple menu-action question

2008-03-31 Thread Rick Mann
Sorry, just read a bit more, and see what I was missing. I thought NSDocumentController was an NSDocument. I have one more question about that that I'm going to try to answer for myself, if not I'l post. Thanks! On Mar 31, 2008, at 3:36 PM, Hamish Allan wrote: In a document-based applicati

Re: Simple menu-action question

2008-03-31 Thread Rick Mann
On Mar 31, 2008, at 3:36 PM, Hamish Allan wrote: In a document-based application, the document controller does. See http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDocumentController_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSDocumentController/ope

Re: Simple menu-action question

2008-03-31 Thread Hamish Allan
On Mon, Mar 31, 2008 at 11:29 PM, Rick Mann <[EMAIL PROTECTED]> wrote: > It's easy enough to make my app open more document types, but that > doesn't really get at the core of the problem...how does one add > fundamental commands similar to Open? They're targeted at the first > responder, and

Re: Simple menu-action question

2008-03-31 Thread Rick Mann
On Mar 30, 2008, at 7:58 PM, Graham Cox wrote: I'm not sure if using Core Data would make a difference, but I'd just do this by responding to the menu command by putting up an NSOpenPanel then processing the filename it returns appropriately. I don't think there's any magic "proper" way to

Re: Simple menu-action question

2008-03-30 Thread Graham Cox
I'm not sure if using Core Data would make a difference, but I'd just do this by responding to the menu command by putting up an NSOpenPanel then processing the filename it returns appropriately. I don't think there's any magic "proper" way to do this within the document architecture, excep

Simple menu-action question

2008-03-30 Thread Rick Mann
In the mishmash of Cocoa tutorials and other docs I've read, I never seem to be led through the fundamentals. With Cocoa doing so much basic stuff for me, and Xcode stationery doing a bunch more, a few things seem to fall through the cracks. I have a pretty straightforward document applicat