• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dynamically loading NIB files into sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Dynamically loading NIB files into sheets
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Undo in tables
  • Next by Date: how to load NSTextView?
  • Previous by thread: Connecting Controller and NSView
  • Next by thread: Re: Dynamically loading NIB files into sheets
  • Index(es):
    • Date
    • Thread