• 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
Document-based cocoa application with 2 .nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Document-based cocoa application with 2 .nibs


  • Subject: Document-based cocoa application with 2 .nibs
  • From: David Harper <email@hidden>
  • Date: Wed, 25 Jul 2007 15:17:52 -0400 (EDT)

Hi,

I'm developing a document based application using cocoa and just now starting to implement toolbars for it.  The way I currently have it set up is that the toolbar is stored in the Document.nib file along with the main window and view used by that document.  The toolbar communicates with a controller that accesses the document's contents.

I suppose the name toolbar is slightly misleading, as clicking an item in the toolbar directly and instantly manipulates the document, using the main document's controller as delegate.

I've added a View menu to the MainMenu.nib file, which I want to use to allow the user to show and hide various toolbars.  However, since the menu and toolbar are in separate nib files I can't seem to create an action in one nib that triggers a response in the other.  Would it work to make duplicates of the controller class and instance, and have one in each nib?  I tried duplicating the toolbar itself but that caused two toolbars to open!

As a side note, does anyone know how to put the title bar on the side of a toolbar instead of on the top?

Thanks,
Dave H.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Document-based cocoa application with 2 .nibs
      • From: PGM <email@hidden>
  • Prev by Date: Re: NSArrayController can't removeObject(s) because of missing managed object context
  • Next by Date: NSUserDefaults for another Application
  • Previous by thread: Re: Guidelines for NIB usage
  • Next by thread: Re: Document-based cocoa application with 2 .nibs
  • Index(es):
    • Date
    • Thread