• 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: What's a good way to tell contextual menu apart from main menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's a good way to tell contextual menu apart from main menu?


  • Subject: Re: What's a good way to tell contextual menu apart from main menu?
  • From: Graham Cox <email@hidden>
  • Date: Sat, 29 Mar 2008 15:28:16 +1100

OK, found a really easy solution - I just use a magic number in the contextual menu item's tag. I'm guessing that for commands such as Paste the tag would generally not have much to do.

------
S.O.S.


On 29 Mar 2008, at 2:51 pm, Graham Cox wrote:
I'd like to treat the Paste command that comes from the main Edit menu and a contextual menu slightly differently - in the latter case I want to position the object based on the mouse, for the main menu it just centres it in the view. What's a good way to tell them apart?

------
S.O.S.
_______________________________________________

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

_______________________________________________

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


References: 
 >What's a good way to tell contextual menu apart from main menu? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: machine with null serial number?
  • Next by Date: Re: machine with null serial number?
  • Previous by thread: What's a good way to tell contextual menu apart from main menu?
  • Next by thread: GDB says not an object
  • Index(es):
    • Date
    • Thread