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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to