Re: Open Recent Menu

2012-07-09 Thread koko
ontroller management of the Open Recent menu is useful in >> applications that don’t use subclasses of NSDocument. >> >> I have subclassed NSDocumentController. >> >> I have the Menu structure for there Open Recent menu. >> >> I use -noteNewRecentDocumen

Re: Open Recent Menu

2012-07-09 Thread Graham Cox
On 10/07/2012, at 4:34 AM, koko wrote: > In some situations, it is worthwhile to subclass NSDocumentController in > non-NSDocument-based applications to get some of its features. For example, > the NSDocumentController management of the Open Recent menu is useful in > application

Re: Open Recent Menu

2012-07-09 Thread koko
> the NSDocumentController management of the Open Recent menu is useful in > applications that don’t use subclasses of NSDocument. > > I have subclassed NSDocumentController. > > I have the Menu structure for there Open Recent menu. > > I use -noteNewRecentDocumentURL: >

Open Recent Menu

2012-07-09 Thread koko
In some situations, it is worthwhile to subclass NSDocumentController in non-NSDocument-based applications to get some of its features. For example, the NSDocumentController management of the Open Recent menu is useful in applications that don’t use subclasses of NSDocument. I have subclassed

Re: App crashing when adding to Open Recent menu

2011-12-08 Thread Jerry Krinock
I've not experienced this crash, but the call stack of your crash includes these lines. 4 com.apple.CoreFoundation CFURLCopyResourcePropertyForKey 5 com.apple.LaunchServices _LSGetIconRefForURL 6 com.apple.LaunchServices LSSharedFileListInsertItemURL The declaration of LSSharedFileListIns

App crashing when adding to Open Recent menu

2011-12-08 Thread Rico
Hi, For one of my users my application is always crashing when it tries to add an entry to the "Open Recent" menu via: [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: [NSURL fileURLWithPath:folderPath]] He is running Mac OS X Lion Server 10.7.2. Full s

disabling "Open Recent" menu items

2009-10-06 Thread kvic...@pobox.com
i need to disable opening any files via the "Open Recent" menu items until the user has specified some information that i save in my app's prefs. this situation can occur if the user has deliberately or accidentally deleted the prefs. now, i can (and do) override -[NSDoc

Re: Open Recent menu - how to populate it?

2009-07-20 Thread Alexander Bokovikov
On 20.07.2009, at 23:13, Ali Ozer wrote: You probably want to call this when you open a doc, or revert, or do "save as..." (if you have any of these commands in your app, of course). Das ist fantastisch... 8-( ) [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:

Re: Open Recent menu - how to populate it?

2009-07-20 Thread Ali Ozer
update the Open Recent menu "manually"? Where to store its items? How to populate this submenu when my app is loaded? Or should I use NSDocumentController anyway? If your app isn't document based, it might complicate things too much to have an NSDocumentController there (whic

Re: Open Recent menu - how to populate it?

2009-07-20 Thread Alexander Bokovikov
On 20.07.2009, at 21:47, Graham Cox wrote: ... and use a menu delegate to update the menu from this. This is just what is unclear for me, as I'm still learning Cocoa :) Do you have in mind that I must: 1 - create an outlet, pointing to "Open Recent" menu item 2 - create an o

Re: Open Recent menu - how to populate it?

2009-07-20 Thread Graham Cox
y. At least I believe so. My problem is that Recent menu is empty, because in Cocoa (AFAIK) it is maintained automatically by NSDocumentController, which is absent in my app. So, my question is - how to create and update the Open Recent menu "manually"? Where to store its items?

Open Recent menu - how to populate it?

2009-07-20 Thread Alexander Bokovikov
nu is empty, because in Cocoa (AFAIK) it is maintained automatically by NSDocumentController, which is absent in my app. So, my question is - how to create and update the Open Recent menu "manually"? Where to store its items? How to populate this submenu when my app is loaded?

Re: File icons shown upside down in the Open Recent menu

2008-10-17 Thread Ken Ferry
int? > > ---snip--- > I wonder what I could have done wrong that all document and folder icons > which are automatically remembered and shown in our app's Open Recent > menu are shown upside down. > > As we didn't change anything related with openDocument: and don'

File icons shown upside down in the Open Recent menu

2008-10-16 Thread Ulf Dunkel
Noone out there who could give me a hint? ---snip--- I wonder what I could have done wrong that all document and folder icons which are automatically remembered and shown in our app's Open Recent menu are shown upside down. As we didn't change anything related with openDocument:

File icons shown upside down in the Open Recent menu

2008-10-11 Thread Ulf Dunkel
I wonder what I could have done wrong that all document and folder icons which are automatically remembered and shown in our app's Open Recent menu are shown upside down. As we didn't change anything related with openDocument: and don't manipulate the Open Recent menu ourse