• 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: simulating a sheet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simulating a sheet?


  • Subject: Re: simulating a sheet?
  • From: "Kenneth C. Dyke" <email@hidden>
  • Date: Wed, 23 Apr 2003 20:08:14 -0700

On Wednesday, April 23, 2003, at 07:44 PM, Dave Yost wrote:

At 5:46 PM -0700 2003-04-23, John C. Randolph wrote:
On Wednesday, April 23, 2003, at 04:47 PM, Dave Yost wrote:

For weird reasons, not to violate guidelines, I am trying to simulate a sheet. First I tried positioning a borderless window just right, setting its height to, then setting its height to full size. Works almost OK, except that the 'sheet' window is resizing as its title bar exists and is transparent. In other words, it grows down from the top of the parent window's title bar (look OK when it's done resizing, tho).

Then I tried making a window whose opacity is 0, then moving an NSView down into it. The window is opaque anyway, and I don't relish animating the move by hand (isn't there code somewhere to allow moving a view using Cocoa's ease-in/ease-out motion code?).

Anyone done this?

I don't get why you're simulating a sheet, instead of just using a sheet.

It's for a tutorial, in which there is a window on top of the sheet which can contain transparent graphics that points at and circles things in the sheet, and this other window needs to handle events.

Okay, that's fine, but... I guess I don't see why you can't just have that other window on top of your existing window and sheet. ;) You might even be able to use the newer 10.2 child window stuff to help keep your child window attached to your main window. However, there may be ordering issues between your child window on the sheet (I've never tried doing anything like what you describe).

-Ken

Kenneth Dyke, email@hidden (personal), email@hidden (work)
Sr. Mad Scientist, MacOS X OpenGL Group, Apple Computer, Inc.
C++: The power, elegance and simplicity of a hand grenade.
_______________________________________________
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.

References: 
 >Re: simulating a sheet? (From: Dave Yost <email@hidden>)

  • Prev by Date: Re: simulating a sheet?
  • Next by Date: Re: write to the console
  • Previous by thread: Re: simulating a sheet?
  • Next by thread: NSHost name and address
  • Index(es):
    • Date
    • Thread