This is a newbie question!
How to Create And Display a Custom Sheet in Cocoa? (like “Add Bookmark” sheet in Safari – see below)
- What are the steps involved in the task?
- How to accomplish each step?
- Can you point out a good step-by-step article?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All you need to do is make a nib file containing an NSWindow that you want to use as the sheet, and load it up. Check out Using Custom Sheets in the docs.
NSApplicationhas a method to let you load the sheet up:This page has some more information and what I’d consider an easier way to set up the sheet – making it a panel or window inside the same nib file as your document window.