Odd Toolbar Behavior
Odd Toolbar Behavior
- Subject: Odd Toolbar Behavior
- From: Jeff Disher <email@hidden>
- Date: Tue, 15 Jan 2002 09:03:11 -0800 (PST)
Hello,
I am using a Toolbar in a doc-based app I am writing
and having some odd behavior with one of the view
elements. Since this program needs to modify this
view item (NSPopupButton), I decided to hold the view
in the MainMenu.nib file and access it from within
the document instances with [NSDocumentController
sharedDocumentController] (the NSDocumentController
has outlets to these elements) when creating the new
toolbar instance for each document.
Now for the odd part. Everything is working perfectly
(even modifications of the popup) except that the view
can only exist on one toolbar at a time. Whenever I
open a new window, the view on the previous window's
toolbar becomes blank. I would have thought that
using the shared controller instance to access these
(read "cheat the system") elements would have caused
the problem but the menu that cooresponds to the view
(used when in text-only mode) works perfectly in
several windows at once.
I can't understand why the view holding the
NSPopupButton would be any different.
Can anyone shed some light on this one for me?
Thanks,
Jeff.
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/