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:59:00 +0000
Hi,
Yes, the results are exactly as I'd expect:
before setting any items:
Some item: Item1
after setting the items:
Some item: Dave.jpg
Yet, by the time the window is actually displayed, Item1 is back in the list
and the .jpg listing is gone.
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 09:54:02 +0100
How do you instantiate the PopUpButton? From a nib file? The same nib file
as the window with the toolbar?
If you query the PopUpButton instance for some properties in awakeFromNib:,
does it seem alive and well?
NSLog(@"Some item: %@", [myPopUpButton titleOfSelectedItem]);
Does that return what you expect? What if you call it after setting the
items?
j o a r
On Thursday, Dec 5, 2002, at 09:41 Europe/Stockholm, Terence G4 Mac wrote:
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?
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
_______________________________________________
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.