• 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
panelSelectionDidChange does not get called for items on the sidebar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

panelSelectionDidChange does not get called for items on the sidebar


  • Subject: panelSelectionDidChange does not get called for items on the sidebar
  • From: Christos Konidaris <email@hidden>
  • Date: Wed, 15 Oct 2008 18:34:44 +0300

Just to save some other folk from wasting his time with this:

In my app delegate I've tried to implement the panel:panelSelectionDidChange callback in order to customize our accessory view depending on the current user selection in the browser. Using the stripped down version below for investigating and following what NSLog outputs to the console I found out that my method is not called at all, when the user clicks any of the items under Devices or Places on the sidebar. It is called for items under the Media category, but all directory, filename and URL strings are null.

Code follows:

- (void) panelSelectionDidChange: (id) sender
{
	NSLog( @"Selected directory: %@", [sender directory] );
	NSLog( @"Selected filename: %@", [sender filename] );
	NSLog( @"Selected URL: %@", [sender URL] );
}

Delegate method panel:shouldShowFilename is called for the clicked item, so for our application we are going to cache the last selected item, and watch for changes ourselves (unless of course someone has a better solution to propose).

Submitted as bug:  rdar://6293537

Regards,

Christos Konidaris
Escape OE
_______________________________________________

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


  • Prev by Date: Re: how to complete c/s app
  • Next by Date: Fwd: how to complete c/s app
  • Previous by thread: Re: Decoding OSStatus values
  • Next by thread: gdb of va_alist?
  • Index(es):
    • Date
    • Thread