• 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: Dismissing menu from menu item that uses custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dismissing menu from menu item that uses custom view


  • Subject: Re: Dismissing menu from menu item that uses custom view
  • From: Steve Mills <email@hidden>
  • Date: Thu, 30 May 2013 22:30:11 -0500

On May 30, 2013, at 18:44:46, Shane Stanley <email@hidden> wrote:

> Have you looked at -nextEventMatchingMask:untilDate:inMode:dequeue:? As in:
>
> 	NSEvent *event;
> 	while ((event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES]))
> 	{
> 		[NSApp sendEvent: event];
> 		event = nil;
> 	}

Just tried it. Didn't work. I also used NSEventTrackingRunLoopMode, since that's the current run loop when tracking a menu. I wish Apple had more people on these lists that can give definitive answers to our questions. It sure would help to know how Apple does it, or even better, be able to call something like [menuItem flashAndCancelTracking].

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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

  • Follow-Ups:
    • Re: Dismissing menu from menu item that uses custom view
      • From: Kyle Sluder <email@hidden>
References: 
 >Dismissing menu from menu item that uses custom view (From: Steve Mills <email@hidden>)
 >Re: Dismissing menu from menu item that uses custom view (From: Lee Ann Rucker <email@hidden>)
 >Re: Dismissing menu from menu item that uses custom view (From: Steve Mills <email@hidden>)
 >Re: Dismissing menu from menu item that uses custom view (From: Lee Ann Rucker <email@hidden>)
 >Re: Dismissing menu from menu item that uses custom view (From: Steve Mills <email@hidden>)
 >Re: Dismissing menu from menu item that uses custom view (From: Steve Mills <email@hidden>)
 >Re: Dismissing menu from menu item that uses custom view (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: NSMapTable with C strings as keys
  • Next by Date: Re: Dismissing menu from menu item that uses custom view
  • Previous by thread: Re: Dismissing menu from menu item that uses custom view
  • Next by thread: Re: Dismissing menu from menu item that uses custom view
  • Index(es):
    • Date
    • Thread