Re: Creating a stand-alone NSToolbar controller
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.