• 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: Creating a stand-alone NSToolbar controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a stand-alone NSToolbar controller


  • Subject: Re: Creating a stand-alone NSToolbar controller
  • From: Brian Webster <email@hidden>
  • Date: Fri, 16 Aug 2002 14:33:44 -0500

On Friday, August 16, 2002, at 02:03 PM, cocoa-dev-
email@hidden wrote:

People who'd like to help may download my test project:
<http://www.gwenhiver.net/tmp/NSToolbarTest.tgz>. There are two
versions: a working version with the NSToolbar delegate methods *in* the
NSDocument subclass, and a non-working version with the NSToolbar
delegate methods *out* of the NSDocument subclass.

The problem is that you have two different instances of your toolbar controller: one is allocated in the nib file and the other is allocated inside your document's -init method. The one in the nib file is the one that has the valid outlet, but it's the other one you set as the document's toolbar controller. You should create an outlet in your document class to hook up to the toolbar controller so that it uses the one that is connected to the search view.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

  • Prev by Date: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • Next by Date: NSBezierPath
  • Previous by thread: [newbie] takeValue:forKey memory management
  • Next by thread: Fwd: Strange problem with NSTextView (was NSTextView colors & styles)
  • Index(es):
    • Date
    • Thread