Re: NSMenu not displaying items added programmatically
Re: NSMenu not displaying items added programmatically
- Subject: Re: NSMenu not displaying items added programmatically
- From: "I. Savant" <email@hidden>
- Date: Thu, 10 May 2007 10:17:34 -0400
On 5/10/07, Patrick Hartling <email@hidden> wrote:
I am running into a problem with NSMenu where menu items that I add throu=
gh
-insertItemWithTitle:action:keyEquivalent:atIndex: are never displayed. W=
hat
I am trying to do is manual management of recently opened files. The file=
s
being opened are not technically documents; they are configuration files =
for
the software. From reading about NSDocumentController and NSDocument, it
seemed that these were not appropriate for my case.
How about letting the document controller do things its own way by
using its Open Recent menu-related methods:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDocumentController_Class/Reference/Reference.html
– maximumRecentDocumentCount
– clearRecentDocuments:
– noteNewRecentDocumentURL:
– noteNewRecentDocument:
– recentDocumentURLs
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden