• 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
Sheet not ending
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sheet not ending


  • Subject: Sheet not ending
  • From: "Mr. Gecko" <email@hidden>
  • Date: Wed, 4 Mar 2009 11:45:22 -0600

Hello, I'm finding something weird. I am writing an application that posts comments. I am able to open the sheet and I have a post and cancel button, they work when you push them, but when I call endSheet with NSApplication, it doesn't end until you quit the application.
Here is my code below, tell me if I'm doing anything wrong.


- (IBAction)postComment:(id)sender {
[commentView setString:@""];
[countField setStringValue:@"500 Remaining"];
[[NSApplication sharedApplication] beginSheet:postCommentWindow modalForWindow:commentWindow modalDelegate:nil didEndSelector:nil contextInfo:nil];
}
- (IBAction)cancelPost:(id)sender {
[[NSApplication sharedApplication] endSheet:postCommentWindow returnCode:NSCancelButton];
}
- (IBAction)post:(id)sender {
[[NSApplication sharedApplication] endSheet:postCommentWindow returnCode:NSOKButton];
}
_______________________________________________


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: Sheet not ending
      • From: "Mr. Gecko" <email@hidden>
    • Re: Sheet not ending
      • From: Nick Zitzmann <email@hidden>
    • Re: Sheet not ending
      • From: Gerd Knops <email@hidden>
  • Prev by Date: Re: SyncServices ...
  • Next by Date: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Previous by thread: View Caching Issues and Questions
  • Next by thread: Re: Sheet not ending
  • Index(es):
    • Date
    • Thread