• 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: Menu in iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu in iTunes


  • Subject: Re: Menu in iTunes
  • From: Gideon King <email@hidden>
  • Date: Sat, 23 Oct 2004 09:52:14 +1000

You're probably looking for NSView's menuForEvent: and/or NSCell's menuForEvent:inRect:ofView: for the menus and NSCursor's push, pop, and set methods if you need to set cursors explicitly.



Gideon King
NovaMind Software
Mind Mapping for MacOS X
www.nova-mind.com

On 23/10/2004, at 8:16 AM, Scott Stevenson wrote:


On Oct 22, 2004, at 11:54 AM, Peter Karlsson wrote:

If I move the mouse pointer over a playlist in iTunes and press the ctrl
key, the cursor changes to a pointer+menu. The cursor changes back again
when the ctrl key is released or if the mouse pointer is moved so it is not
over a playlist. And if I ctrl click the playlist a contextual menu opens.
This is what I want to do in my app. Can someone please tell me how to do
that?

I've never done it myself, but start here:

<http://developer.apple.com/documentation/UserExperience/Conceptual/ OSXHIGuidelines/XHIGCursors/chapter_6_section_2.html>

SetThemeCursor ( kThemeContextualMenuArrowCursor )

That's Carbon. The relevant Cocoa class in NSCursor, but it doesn't have support for the contexual menu pointer.


- Scott

--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]
_______________________________________________
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
_______________________________________________
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
References: 
 >RE: Menu in iTunes (From: "Peter Karlsson" <email@hidden>)
 >Re: Menu in iTunes (From: Scott Stevenson <email@hidden>)

  • Prev by Date: IBPalette weirdness
  • Next by Date: Re: Bug in NSArrayController? (immutable instead of mutable dictionaries)
  • Previous by thread: Re: Menu in iTunes
  • Next by thread: NSScrollView keeping to top left [SOLUTION]
  • Index(es):
    • Date
    • Thread