[Newbie] How to load and display a sheet from a NIB file ?
[Newbie] How to load and display a sheet from a NIB file ?
- Subject: [Newbie] How to load and display a sheet from a NIB file ?
- From: Jérome Foucher <email@hidden>
- Date: Thu, 20 Mar 2003 11:43:35 +0100
Hi all !
I'm stuck with a problem fairly simple for many people on this list,
but for me it's puzzling...
Basically I have a NSWindow that is loaded from a NIB file called
Repositories.nib
This NIB file holds the window and 2 sheets.
I want to display the first sheet when the user click the "Add" button,
and the second one when he/she clicks on the "Delete" button.
From my understanding, I should use the beginSheet method from
NSApplication.
But I don't really understand how I should load the sheet from the NIB
file....
Do I have to put each sheet into a separate NIB file ?
Do I need to create a custom class for each sheet too ?
Any advice appreciated !
Thanks
Jerome
_______________________________________________
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.