• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSPathControl not displaying icons initially
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSPathControl not displaying icons initially
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Mac Mini or iMac for Cocoa Development?
  • Next by Date: XCode Developer issue. Debugger errors since upgrading to Snow Leopard: unable to read unknown load command 0x80000022
  • Previous by thread: Matching braces and [NSTextView selectionRangeForProposedRange:granularity:];
  • Next by thread: Re: NSPathControl not displaying icons initially
  • Index(es):
    • Date
    • Thread