Re: Menu in iTunes
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