sheet code design
sheet code design
- Subject: sheet code design
- From: Chuck Soper <email@hidden>
- Date: Mon, 19 Jul 2004 11:37:42 -0700
Hello,
I have a nib whose file's owner is a NSWindowController subclass. The
main window has a sheet with a fair amount of controls: combobox,
popupbutton(menu), textfields with delegates, etc. Right now, most of
the code that deals with the sheet is in a category of my
NSWindowController subclass. Most of the sheet IBOutlets are in the
NSWindowController subclass interface. Some of the sheet code and
some the sheet IBOutlets are in the data source for the sheet
combobox. This code is starting to become difficult to maintain.
Is there a common place to put sheet code and IBOutlets? Should I
just create SheetController for the sheet code and IBOutlets? I
suppose this SheetController would just be a NSObject subclass, but
perhaps it should be a NSPanel subclass. I expect that I would create
an instance of the SheetController in my nib so I can connect all the
IBOutlets.
Also:
Frequently, the first time my sheet is displayed there is a delay.
Can I somehow pre-load the sheet (NSPanel) during nib instantiation
to prevent this delay?
Thanks,
Chuck
P.S. Eudora 6.1 thinks that "instantiation" is misspelled!
_______________________________________________
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.