• 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
Newbie: performSelector: withObject: afterDelay: inModes: question..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie: performSelector: withObject: afterDelay: inModes: question..


  • Subject: Newbie: performSelector: withObject: afterDelay: inModes: question..
  • From: Scott Andrew <email@hidden>
  • Date: Fri, 08 Jul 2005 21:45:19 -0700

I have a question about performSelector: withObject: afterDelay: inModes:. I
understand that this calls the selector after a specific delay. What exactly
is the modes for. I found some source code that fixes my issue with text it
is the following:

    // Remember that we're in a Modal Panel run loop
    [self performSelector: @selector(beginAuthentication)
               withObject: nil
               afterDelay: 1
                  inModes: [NSArray arrayWithObjects: NSDefaultRunLoopMode,
NSModalPanelRunLoopMode, nil]];

What are the modes for?

 _______________________________________________
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

  • Follow-Ups:
    • Re: Newbie: performSelector: withObject: afterDelay: inModes: question..
      • From: Carlos Salinas <email@hidden>
    • Re: Newbie: performSelector: withObject: afterDelay: inModes: question..
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Getting all managed objects of given entity
  • Next by Date: Re: Getting all managed objects of given entity
  • Previous by thread: Re: Getting all managed objects of given entity
  • Next by thread: Re: Newbie: performSelector: withObject: afterDelay: inModes: question..
  • Index(es):
    • Date
    • Thread