• 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: David Harper <email@hidden>
  • Date: Thu, 26 Jul 2007 09:48:46 -0400 (EDT)

Thanks a lot!  I love being directed to sample code =)

The thing is, I'm hoping to implement floating toolbars.  We have many, many functions we want the user to be able to access quickly, and a toolbar within the window would be good for perhaps font settings etc. but there simply wouldn't be enough room in the main window.......

However, if a window consisted only of an NSToolbar, maybe that would work.  I'll do some research on this today.  The issue remains about communication between objects in separate .nib files.

PGM <email@hidden> wrote: > 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: Andreas Mayer <email@hidden>
    • Re: Document-based cocoa application with 2 .nibs
      • From: Uli Kusterer <email@hidden>
References: 
 >Re: Document-based cocoa application with 2 .nibs (From: PGM <email@hidden>)

  • Prev by Date: commitEditing returns selectorNotRecognized
  • Next by Date: Re: Document-based cocoa application with 2 .nibs
  • Previous by thread: Re: Document-based cocoa application with 2 .nibs
  • Next by thread: Re: Document-based cocoa application with 2 .nibs
  • Index(es):
    • Date
    • Thread