• 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: Widgets turning white and never unturning white?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Widgets turning white and never unturning white?


  • Subject: Re: Widgets turning white and never unturning white?
  • From: j o a r <email@hidden>
  • Date: Thu, 14 Jul 2005 10:31:11 +0200


On 14 jul 2005, at 10.23, Theodore H. Smith wrote:

[sheet beginSheetForDirectory:nil
file:name
modalForWindow:window
modalDelegate:self
didEndSelector:@selector (savePanelDidEnd:returnCode:contextInfo:)
contextInfo:cfd
];
assert( true ); // just set a breakpoint here.


The open dialog fires, and then the breakpoint is trapped immediately, even before I closed the dialog!

Yes of course - that's how it's supposed to work! Sheets are not supposed to be blocking!


However, if I do this code:

[sheet beginSheetForDirectory:nil
file:name
modalForWindow:window
modalDelegate:self
didEndSelector:@selector (savePanelDidEnd:returnCode:contextInfo:)
contextInfo:cfd
];
[NSApp runModalForWindow:sheet];
assert( true ); // just set a breakpoint here.


The breakpoint only files when the dialog closes.

This code is broken and should not be used.

j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Widgets turning white and never unturning white? (From: "Theodore H. Smith" <email@hidden>)
 >Re: Widgets turning white and never unturning white? (From: glenn andreas <email@hidden>)
 >Re: Widgets turning white and never unturning white? (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: Widgets turning white and never unturning white?
  • Next by Date: (Urgent)Calculating the VisRgn of my windows
  • Previous by thread: Re: Widgets turning white and never unturning white?
  • Next by thread: Re: Widgets turning white and never unturning white?
  • Index(es):
    • Date
    • Thread