NSPathControl not displaying icons initially
NSPathControl not displaying icons initially
- Subject: NSPathControl not displaying icons initially
- From: Markus Spoettl <email@hidden>
- Date: Tue, 15 Sep 2009 00:14:35 +0200
I'm using an NSPathControl which is bound to the window controller's
path property. The path control uses NSPathStylePopUp as style
(statically set up in IB). The setup works correctly except that the
path control does not display any directory icons initially. The icons
are also missing from the path control's popup menu.
As soon as I use the control to select a path (even the same that is
selected already), the icons appear. They are also added to the popup
menu.
It seems that somehow the control fails to use icons for the initial
value. I also double-checked that this has nothing to do with bindings
and/or the time the value is set. The problem also affects all
different NSPathControl styles (standard, navigation, pop up).
The problem is reproducible in Apple's ObjectPath sample project by
adding a line of code to MyWindowController.m at Line 95:
[myPathControl setURL:[NSURL URLWithString:NSHomeDirectory()]];
which sets the control's URL to a valid initial value. Same result, no
icons until you select any path manually using the control.
What can one do to get icons right away? Is this a bug? Is this known?
I'm on Snow Leopard 10.6.1, Deployment target is 10.5
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden