validateMenuItem Not Called for Undo: Menu Item?

2011-08-25 Thread Vik Rubenfeld
My validateMenuItem method is never being called for my undo: and redo: menu items, leaving them permanently disabled. From Apple's doc, "Enabling Menu Items": http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html#//apple_ref/doc/uid/200

Re: validateMenuItem Not Called for Undo: Menu Item?

2011-08-25 Thread Vik Rubenfeld
Thank you very much, Quincey. That fixed it. On Aug 25, 2011, at 7:00 PM, Quincey Morris wrote: > Configuring the Undo menu item with action 'undo:' tells the frameworks that > this is *the* undo menu item, so it becomes one element of a standard undo UI > mechanism implemented in NSWindow. Un

Re: Best Practices for Associating a File Extension With a File in XCode 4?

2011-09-03 Thread Vik Rubenfeld
nt, still does not append a file extension to the file name. What am I missing? On Sep 3, 2011, at 2:12 PM, Lee Ann Rucker wrote: > Have you set [NSDocument fileType]? > You can get the extension from [NSString pathExtension] > > > - Original Message - > Fro

Re: Best Practices for Associating a File Extension With a File in XCode 4?

2011-09-03 Thread Vik Rubenfeld
tInfo:nil]; If I'm using saveDocumentWithDelegate:didSaveSelector:contextInfo, what is the correct way for me to communicate the list of suitable extensions to the Save panel? On Sep 3, 2011, at 3:33 PM, Quincey Morris wrote: > On Sep 3, 2011, at 15:21 , Vik Rubenfeld wrote: > >> I went to t

Re: Best Practices for Associating a File Extension With a File in XCode 4?

2011-09-04 Thread Vik Rubenfeld
27;m sure it's right in front of me. What am I not seeing yet? On Sep 3, 2011, at 5:23 PM, Kyle Sluder wrote: > On Sat, Sep 3, 2011 at 5:14 PM, Vik Rubenfeld wrote: >> If I'm using saveDocumentWithDelegate:didSaveSelector:contextInfo, what is >> the correct way for me to

Re: Best Practices for Associating a File Extension With a File in XCode 4?

2011-09-04 Thread Vik Rubenfeld
at file extension my document should be, when calling saveDocumentWithDelegate:didSaveSelector:contextInfo. I'm sure it's right in front of me. What am I not seeing yet? On Sep 3, 2011, at 5:23 PM, Kyle Sluder wrote: > On Sat, Sep 3, 2011 at 5:14 PM, Vik Rubenfeld wrote: >

Re: Best Practices for Associating a File Extension With a File in XCode 4?

2011-09-04 Thread Vik Rubenfeld
I'm saving via this call: [self saveDocumentWithDelegate:self didSaveSelector:@selector(didSaveDocument:didSave:contextInfo:) contextInfo:nil]; This brings up a Save As dialogue box. On Sep 4, 2011, at 12:33 PM, Jens Alfke wrote: > > On Sep 4, 2011, at 9:06 AM, Vik Rube

NSTextFieldCell Action Method Not Reaching Delegate?

2011-07-11 Thread Vik Rubenfeld
I have an NSOutlineView with five columns. I need to know which column contains the NSTextFieldCell which is currently being edited. To do that, I thought I would connect the action method of the NSTextFieldCell to a method in the NSOutlineView's delegate, which could check the Tag of the NSTe