• 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: self Changes on Open Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: self Changes on Open Panel


  • Subject: Re: self Changes on Open Panel
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 9 Jun 2009 10:12:24 -0700

K. Darcy Otto wrote:

-(void)windowWillBeginSheet:(NSNotification *)notification
{
	sheetOpen = YES;
	NSLog(@"self at -windowWillBeginSheet: %@",self);
}

I would NSLog the before and after state of sheetOpen, i.e. on entry to the method body and on exit from the method body. I might even consider assertions.


Please show the code that defines the sheetOpen class variable, and identify exactly where it resides (which class), and how other classes have access to it. I mention this because all the behavior you've described so far is consistent with what happens if sheetOpen isn't actually a class variable or a static variable, but is an instance variable.

Finally, please explain what problem you're trying to solve by having a boolean sheetOpen class variable. Is this related to your earlier "How to tell if a Panel is Open" question? If so, please explain the premise of that question: you wrote, "I need to know whether a particular panel is open", but never explained why you need to know that, or what you'd do with that state.

  -- GG

_______________________________________________

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: self Changes on Open Panel
      • From: "K. Darcy Otto" <email@hidden>
    • Re: self Changes on Open Panel
      • From: "K. Darcy Otto" <email@hidden>
  • Prev by Date: Is Toggling Text Color Still State of the Art for Disabling Static Text
  • Next by Date: Printing a layer-backed NSView
  • Previous by thread: Re: self Changes on Open Panel
  • Next by thread: Re: self Changes on Open Panel
  • Index(es):
    • Date
    • Thread