Re: Sheet not ending
Re: Sheet not ending
- Subject: Re: Sheet not ending
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 4 Mar 2009 10:51:59 -0700
On Mar 4, 2009, at 10:45 AM, Mr. Gecko wrote:
- (IBAction)postComment:(id)sender {
[commentView setString:@""];
[countField setStringValue:@"500 Remaining"];
[[NSApplication sharedApplication] beginSheet:postCommentWindow
modalForWindow:commentWindow modalDelegate:nil didEndSelector:nil
contextInfo:nil];
First, SEL is a C data structure and not an ObjC class, so you should
technically be using NULL instead of nil when such a thing is
requested. But I'm being pedantic, and that's not the real problem.
The real problem is, in addition to ending the sheet, you need to
close it, and I don't see the code doing that.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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