• 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
Re: problems with NSWorkspaceRecycleOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with NSWorkspaceRecycleOperation


  • Subject: Re: problems with NSWorkspaceRecycleOperation
  • From: John Blackburn <email@hidden>
  • Date: Tue, 26 Feb 2002 23:36:01 -0800

NSWorkspaceRecycleOperation is broken. This was discussed recently (Feb 22). Kurt Revis supplied a workaround with working code using AppleEvents to tell the Finder to move the files to the trash. This solves the trash icon problem, addresses auto-renaming, and moves the files reliably.

Ondra Cada noted that implementing this as a category on NSWorkspace would allow the calling code to remain "correct" and blissfully unaware of the workaround.

John Blackburn

On Tuesday, February 26, 2002, at 10:41 PM, Robert Vasvari wrote:

Hi All,
I have some issues with
NSWorkspaceRecycleOperation as it is performed by
[NSWorkspace
performFileOperation:source:destination:files:tag:].
1. sometimes this call fails silently, no error
messages just returns 0 and the file does not get
moved to the trash. I try again the same file without
any changes and it works. This happens randomly, at
least i cannot see any pattern. i verified until I was
blue in the face that all arguments passed to the call
were correct, there were no pernmission problems, etc.
The Finder has no problem moving the same files to the
trash.

2. After using this call, i notify the NSWorkspace by
sending the noteFileSystemChanged message with the
source directory as argument. The Finder updates, but
the trash icon does no change from empty to full, even
though the file did get moved to the trash. Is there
anything else i need to do?

any info is appreciated.

=[vrobi]=
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com
_______________________________________________
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.
_______________________________________________
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.

References: 
 >problems with NSWorkspaceRecycleOperation (From: Robert Vasvari <email@hidden>)

  • Prev by Date: problems with NSWorkspaceRecycleOperation
  • Next by Date: Re: OS information
  • Previous by thread: problems with NSWorkspaceRecycleOperation
  • Next by thread: Option key or Alternate key
  • Index(es):
    • Date
    • Thread