Re: Dynamic menu for document-based app?
Re: Dynamic menu for document-based app?
- Subject: Re: Dynamic menu for document-based app?
- From: Harilaos Skiadas <email@hidden>
- Date: Tue, 18 Jan 2005 19:39:50 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
>Creating the menu initially isn't a problem. I can
use
>my outline view's data source to build a menu
>programmatically. But these are the problems I
>foresee:
>
>1) The menu would have to be updated every time the
>datasource is changed.
>
>2) The more difficult problem: the menu bar is for
the
>whole application, but this particular menu item
>should show the data only for the currently active
>document.
Maybe I've misunderstood what you want to do, but what
I would do in your case is to create an application
delegate and make that the menu's delegate. Then, only
populate the menu through the delegate methods when
the menu actually has to open. At this point, your app
delegate could find what the active document is and
get its information from there. This saves you the
cost of updating the menu all the time,
which seems to me to be your main problem. There is no
need to update the menu until it is actually needed.
>
>Many thanks in advance,
>Keith
HTH,
Haris
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden