Re: NSToolbar and NSPopUpButton
Re: NSToolbar and NSPopUpButton
- Subject: Re: NSToolbar and NSPopUpButton
- From: "Terence G4 Mac" <email@hidden>
- Date: Thu, 05 Dec 2002 08:41:00 +0000
Hi,
Thank you. Yes, I believe it's valid at that point.
That code does appear after the [window setToolbar:toolbar]; ... how could
I ensure that it's valid at that point?
Thank you,
Terence
From: j o a r <email@hidden>
To: "Terence G4 Mac" <email@hidden>
CC: email@hidden
Subject: Re: NSToolbar and NSPopUpButton
Date: Thu, 5 Dec 2002 07:38:47 +0100
Are you sure that the toolbar item view is available in "awakeFromNib:"?
The safest thing might be to not assume that a particular toolbar item is
available until you get the "toolbarWillAddItem:" notification / delegate
message. In some cases it's also important to remove any references
(pointers) to the toolbar item on "toolbarDidRemoveItem:".
j o a r
On Thursday, Dec 5, 2002, at 04:01 Europe/Stockholm, Terence G4 Mac wrote:
When the app loads, though, all I've got are "Item1, Item2, and Item3" in
the list -- none of my content. And, yes, the addItemWithTitle is
definitely being called at least once -- I made sure of that.
I'm guessing this is just something I don't understand yet and I've failed
to associate the popup with a menu correctly, perhaps? I don't know...
Can anyone provide the aspirin here? :)
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.