• 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: NSNotificationQueue Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationQueue Question


  • Subject: Re: NSNotificationQueue Question
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 20 May 2015 10:59:00 -0700

> On May 20, 2015, at 10:18 AM, Richard Charles <email@hidden> wrote:
>
> This works but the problem is that there are undesirable side effects to running the runloop once when this call is made.

Yup. Manually spinning the runloop in any non-custom mode is generally a bad idea.

> What I would like to do is to run the runloop once but only cause the notification queue to post this notification but not do other things.

I don’t think that’s possible. NSNotificationQueue is convenient but limited; I suggest rolling your own equivalent using a timer or delayed-perform.

—Jens
_______________________________________________

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: NSNotificationQueue Question
      • From: Kyle Sluder <email@hidden>
References: 
 >NSNotificationQueue Question (From: Richard Charles <email@hidden>)

  • Prev by Date: Re: Collection Views Breaking
  • Next by Date: Re: Collection Views Breaking
  • Previous by thread: NSNotificationQueue Question
  • Next by thread: Re: NSNotificationQueue Question
  • Index(es):
    • Date
    • Thread