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

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


References: 
 >Sheet not ending (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: Sheet not ending
  • Next by Date: Re: All my leaks are gone... but now a memory warning?!
  • Previous by thread: Re: Sheet not ending
  • Next by thread: Re: Sheet not ending
  • Index(es):
    • Date
    • Thread