• 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: Shane Stanley <email@hidden>
  • Date: Fri, 31 May 2013 09:44:46 +1000

On 30/05/2013, at 11:49 PM, Steve Mills <email@hidden> wrote:

> Is there some better way to give the current event loop time so I can have the drawing and canceling done right in my mouseUp handler?

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;
	}


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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: Steve Mills <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>)

  • Prev by Date: Re: App store reject on asl log. How else do I get at the log messages?
  • 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