• 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
Hiding and showing a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hiding and showing a window


  • Subject: Hiding and showing a window
  • From: David McCabe <email@hidden>
  • Date: Sat, 16 Feb 2002 14:21:29 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

I have a faceless application which needs to pop up a small display window at certain events. Preferably, the window will slide out from under the menu bar.

I have managed to make a window with a transparent background, which floats above all else. However, I cannot figure out how to hide and show the window, much less slide it around.

Furthermore, I cannot create an NSRect. This code:
NSRect myRect;

Results in the following error:
SBAppController.m:23: illegal statement, missing `;' after `NSRect'

I tried several variations on this, including making a pointer to an NSRect. It would seem that NSRect is important in moving windows. Why doesn't this work?

Thank you.
- --
David McCabe
'finger email@hidden' for PGP key.
Wrfhf ybirf lbh!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE8bttvCwKQ8Z46eHoRAg+hAKCfM0no0beEQT2KnMWzKkMrTs8AQwCcD+P/
And3B/MQ6DZb0+72G16I0nc=
=KaL4
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Hiding and showing a window
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: color of NSButton
  • Next by Date: Re: Hiding and showing a window
  • Previous by thread: Re: NSDistributedNotificationCenter
  • Next by thread: Re: Hiding and showing a window
  • Index(es):
    • Date
    • Thread