• 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: How do you know when a modal operation has finished (in terms of Obj-C code) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you know when a modal operation has finished (in terms of Obj-C code) ?


  • Subject: Re: How do you know when a modal operation has finished (in terms of Obj-C code) ?
  • From: Sherm Pendley <email@hidden>
  • Date: Wed, 14 Feb 2007 11:16:28 -0500

On Feb 14, 2007, at 10:56 AM, email@hidden wrote:

my problem is the following : I should like a certain instruction (the
last line
"[myView restoreToNormal];" in the code below) to be executed immediately
after a modal
operation (the print operation) has finished.

The docs for the method you're calling are very clear about how to do this. Like most modal operations, the method you're calling takes a delegate and selector arguments; the selector will be sent to the delegate when the modal operation is complete.


// Run operation, which shows the Print panel if showPanels was YES
[self runModalPrintOperation:op
delegate:nil
didRunSelector:NULL
contextInfo:NULL];

Don't do this immediately after calling the above - do it in the method you supplied as the didRunSelector.


[myView restoreToNormal];

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: How do you know when a modal operation has finished (in terms of Obj-C code) ?
      • From: email@hidden
References: 
 >How do you know when a modal operation has finished (in terms of Obj-C code) ? (From: email@hidden)

  • Prev by Date: Need advise on NSDistributedNotifications
  • Next by Date: converting CIImage to NSData
  • Previous by thread: Re: How do you know when a modal operation has finished (in terms of Obj-C code) ?
  • Next by thread: Re: How do you know when a modal operation has finished (in terms of Obj-C code) ?
  • Index(es):
    • Date
    • Thread