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

Re: Document-based cocoa application with 2 .nibs


  • Subject: Re: Document-based cocoa application with 2 .nibs
  • From: PGM <email@hidden>
  • Date: Wed, 25 Jul 2007 22:11:11 -0400

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.
_______________________________________________

Is there a reason why you can't just use NSToolbar?

http://developer.apple.com/samplecode/ToolbarSample/index.html

Cheers, Patrick
_______________________________________________

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: David Harper <email@hidden>
References: 
 >Document-based cocoa application with 2 .nibs (From: David Harper <email@hidden>)

  • Prev by Date: Combining predicates from multiple NSSearchFields, using IB bindings only
  • Next by Date: Re: NSUserDefaults for another Application
  • Previous by thread: Document-based cocoa application with 2 .nibs
  • Next by thread: Re: Document-based cocoa application with 2 .nibs
  • Index(es):
    • Date
    • Thread