• 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
NSFilenamesPboardType, sevices, Finder, multiple file selection and Find
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFilenamesPboardType, sevices, Finder, multiple file selection and Find


  • Subject: NSFilenamesPboardType, sevices, Finder, multiple file selection and Find
  • From: "John Karp" <email@hidden>
  • Date: Wed, 17 Mar 2004 05:25:31 +0000

I have encountered a very strange behavior. I am writing a service application which uses NSFilenamesPboardType. I noticed the following sequence of behavior.

1. My application is in the service menu right after Finder is started (such as aftger a log in). And it is there when I make a single file selection.

2. If I make a multiple file selection, my service application's items disappear from the Finder's service menu altogether!

3. Behavior 2 is stateful, i.e. the the items continue to be missing afterward, even if I make a single file selection. Only a relaunch of Finder restore behavior 1.

4. I can also achieve 3 by pull down the service submenu when I am in the Find window.

5. If I don't pull down the service submenu when I am in Find or with multiple file selection, the said behavior does NOT occur.

6. Not just my application, but some other application as well. For example, behavior 4 affects both FileMerge and PGP, while behavior 3 affects FileMerge but NOT PGP. Both FileMerge and PGP uses NSFilenamesPboardType in their service properties, although PGP has more variety in its use of PboardTypes.

Is this a bug of Finder, or NSPasteboard class, or my application as well as FileMerge and PGP? For one thing, it seems strange that service menu items can disappear during the life of Finder. That seems to contradict what the documentation says (that you can only (de)activate items (in)validating them after registration during initialization), although of course Finder is a very special application.

Thanks in advance,

_________________________________________________________________
Free up your inbox with MSN Hotmail Extra Storage. Multiple plans available. http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/
_______________________________________________
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.


  • Prev by Date: Re: Leave NSLog()s in Final Product? - solution
  • Next by Date: Re: Using bindings with an NSArray of NSStrings ?
  • Previous by thread: Re: NSImage buggy when scaling images above real size?
  • Next by thread: multiple views with segmented control
  • Index(es):
    • Date
    • Thread