Dynamically loading NIB files into sheets
Dynamically loading NIB files into sheets
- Subject: Dynamically loading NIB files into sheets
- From: Sebastian Celis <email@hidden>
- Date: Sat, 13 Apr 2002 16:22:45 -0500
How would I go about dynamically loading NIB files so that I can use
them as sheets?
Here is what I want to do...
I have a Document-Based application that has an NSPopUpButton with n
different choices and a normal button next to it. When the normal
button is pushed, I want it to check the NSPopUpButton and display a
specific sheet depending upon which item in the NSPopUpButton is
selected. I want the NIB file to be dynamically loaded since there are
going to be a lot of them.
I've thought about creating a SheetController class that each Document
has an instance of, and then having this SheetController class have
instances of SheetControllerA, SheetControllerB, and so on for the
number of sheets I have... but I'm having trouble implementing it
(specifically with regard to what class calls what method and what the
syntax of the final method to display the sheet should be).
Take care,
Sebastian Celis
_______________________________________________
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.