• 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: Making a sheet from a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a sheet from a view


  • Subject: Re: Making a sheet from a view
  • From: Lorenzo <email@hidden>
  • Date: Tue, 02 Sep 2003 08:54:57 +0200

Hi,
again, it's easier than you can think.
You have a main window and a sheet window
you want to attach the sheet window to the main window.
They are NSWindows and not NSViews.

To open the sheet simply call:
[NSApp beginSheet:sheetWindow modalForWindow:maiWindow
modalDelegate:self didEndSelector:NULL contextInfo:NULL];

To close the sheet call:
[NSApp endSheet:sheetWindow];
[sheetWindow close];


Best Regards
--
Lorenzo
email: email@hidden

> Hi everybody,
>
> I've noticed many Cocoa programs have the ability to treat some views
> as sheets.
> Where can I find docs and helps on how to do this?
>
> TY
>
> --
> Sanri Parov
_______________________________________________
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.

  • Prev by Date: Re: Erasing a NSTextView
  • Next by Date: Re: open panel and nsdocumentcontroller
  • Previous by thread: Re: Making a sheet from a view
  • Next by thread: NSWindowController not responding to menu items
  • Index(es):
    • Date
    • Thread