How to create and display a custom sheet in Cocoa?

This is a newbie question!

How to create and display your own sheet in Cocoa? (e.g. "Add Bookmark" in Safari - see below)

  • What are the steps associated with the task?
  • How to complete each step?
  • Can you point out a good step-by-step article?

alt text http://grab.by/2oWw

+5
source share
1 answer

All you have to do is make a nib file containing NSWindow that you want to use as a sheet and load it. Check Use of custom tables in documents.

NSApplication has a way that allows you to load a sheet:

beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:

, - nib, .

+2

All Articles