• 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: Using afterDelay: ? (2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using afterDelay: ? (2)


  • Subject: Re: Using afterDelay: ? (2)
  • From: Mamdouh <email@hidden>
  • Date: Wed, 26 Jun 2002 22:18:58 +0200

It works now! I sorteted it out with someone for the list!
The problem was rather simple! ;-) I had made a typo:

[NSApp performSelector:@selector(endSheet:) withObjct:SUStatusSheet afterDelay:4.0];
______

Objct= WRONG
i forgot an -e- and that gave me the problems!

Mamdouh

Why won't your NSApp example work? NSApplication is a sub-class from NSObject so it inherits
ALL methods that NSObject has..

<shrug>

-SJM

On Wednesday, December 31, 1969, at 07:04 PM, Mamdouh wrote:

[suStatusSheet performSelector:@selector(orderOut:) withObject:nil
afterDelay:3.0];

Thanks for the help guys! It works great!

Just to be annoying :-), i have one more question! I want to use the withDelay method on the endSheet method, because i need to ec4execute some code wright after the suStatusSheet is out, and if i use the withDelay: method on the orderOut: method, the code gets executed while the sheet is still up!

How do i use the withdDelay: method with this method:
[NSApp endSheet:SUStatusSheet];

??

[NSApp performSelector:@selector(endSheet:) withObjct:SUStatusSheet afterDelay:4.0];

This , obviously doesn't work because the withDelay: method is not a NSApplication method, but an NSObject method! And if i replace it with this:

[NSObject performSelector:@selector(endSheet:) withObjct:SUStatusSheet afterDelay:4.0];

it does4nt work either because the endSheet: method ia a NSApplication method and not a NSObject method!

I would appreciate if one of you could help me (again)!
Again thanks a 1000 times for the help with my first question!

TIA

Mamdouh
Student/Programmer
Denmark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Using afterDelay: ? (2) (From: email@hidden)

  • Prev by Date: Storing something in using plist(XML?)
  • Next by Date: Re: valueForKey:@"class"
  • Previous by thread: Re: Using afterDelay: ? (2)
  • Next by thread: Re:Using afterDelay: ? (2)
  • Index(es):
    • Date
    • Thread