Re: Open Recent menu - how to populate it?
Re: Open Recent menu - how to populate it?
- Subject: Re: Open Recent menu - how to populate it?
- From: Alexander Bokovikov <email@hidden>
- Date: Mon, 20 Jul 2009 22:29:37 +0600
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 outlet, pointing to the Main Menu itself (or is there
any ready-to-use one?)
3 - set my AppController, as a Main Menu delegate (e.g. in
awaikFromNib, using outlet, created in #2)
4 - add some delegate message to my AppController class (what message
should I intercept?)
5 - write some code like populating submenu of the menu item
referenced by outlet, created in #1
If the sequence above is correct, then, OK, I'll try to do it, though
I have one unclear point - will newly created menu items respond to
onClick: action automatically, or should I assign onClick: action for
each dynamically created item? If I should, then how to do it?
For extra credit, check the validity/existence of the file when
updating the menu and remove bad ones and disambiguate duplicates.
Someone might have written a class to do this already.
This is obvious, but my problem is in the menu dynamic creation.
On 20.07.2009, at 21:55, Tony S. Wu wrote:
i'd store the plist file in Library/Application support folder, and
just process the file upon startup.
Am I correct in my understanding, that my application can create a
subdirectory within /Library/Application Support/ directory? Or should
it be done through an installer, where Administrator's password is
asked?
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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