• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dock menus- sender is NSApp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dock menus- sender is NSApp


  • Subject: Re: Dock menus- sender is NSApp
  • From: email@hidden
  • Date: Mon, 29 Oct 2001 22:11:18 GMT

Please include the line below in follow-up emails for this request.

Follow-up: 1781109

Re: Dock menus- sender is NSApp

Hello Erik,

Thank you for bringing this problem to our attention. We would like to process your report, but we need some additional information before doing so. Specifically, we need to know the following:

-- The build number of Mac OS 10.1 that you are using.

Thank you for your time and effort. Your help is greatly appreciated.

Regards,

Janet Shah
Apple Developer Connection
Worldwide Developer Relations


Send follow ups to email@hidden


REQUEST ------------------------------------------------------------------------

Hi,

I'm glad that I can easily imlement a Dock Menu in Cocoa with:

- (NSMenu *)applicationDockMenu:(NSApplication *)sender

Unfortunately, there's a DRASTIC oversight in the current Dock Menu
implementation.

My implementation of the method above creates x menu items. Why x items?
Because I have one menu item for each file in a particular directory.

Of course, each of these menu items is given the same action (and a
different tag). I assigned their selector using the below method:

[thisMenu insertItemWithTitle:itemName action:mySelector keyEquivalent:@""
atIndex:i]

Of course, big freaking problem: there's absolutely no way to figure out
which menu item was selected, huh? Ooops. I'd call that a bug... Or at the
very least a really big oversight...

Any way, if you've got a work-around, I'd love to hear it, because the ones
I've heard so far are pretty, uhh, "interesting."


--
Best wishes,
Erik J. Barzeski

Imagination is more important than knowledge - Albert Einstein
*******************************************************************
Email: erik@(anything below)
AIM: iacas ICQ: 8186546

http://barzeski.com/ http://weims.net/
http://techstra.net/ http://cocoadevcentral.com/
http://soundsetcentral.com/ http://applescriptcentral.com/
*******************************************************************


DB REFERENCE -------------------------------------------------------------------

TIME IN: 26-Oct-2001 13:11 PDT
TIME OUT: 29-Oct-2001 14:51 PDT

Copyright 2001, Apple Computer, Inc.

SECURITY: NON-DISCLOSURE USE ONLY


  • Prev by Date: Re: How do I ...
  • Next by Date: Re: HTTP post
  • Previous by thread: Re: How show a sheet ?
  • Next by thread: slideSaver
  • Index(es):
    • Date
    • Thread