File a bug report with Apple!

—Jens (who has intermittent troubles with AirDrop too)

> On May 27, 2016, at 10:47 AM, Gerriet M. Denkmann <gerr...@mdenkmann.de> 
> wrote:
> 
> 
>> On 27 May 2016, at 23:18, Steve Christensen <puns...@mac.com> wrote:
>> 
>> I haven't worked with AirDrop, but I just looked at the docs and one of the 
>> delegate methods is -sharingService:didFailToShareItems:error:. Maybe if you 
>> implement that you can at least see what the specific error is?
>> 
> 
> Well, it does not tell anything. Never gets called. The problem: if there is 
> no-one found to share things with, then there can be no sharing, and thus no 
> errors while sharing.
> 
> “Invoked when the sharing service encountered an error when sharing items.”
> 
> But thanks for the suggestion. It is better to have this delegate method 
> implemented.
> 
> Kind regards,
> 
> Gerriet.
> 
> 
>> 
>> 
>>> On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann <gerr...@mdenkmann.de> 
>>> wrote:
>>> 
>>> I have an OS X app (10.11.5) which has a button called AirDrop, which does:
>>> 
>>> - (IBAction)airDrop: (NSButton *)sender     
>>> {
>>>     NSArray *shareItems = list of one or more urls of pdf files
>>>     NSSharingService *service = [ NSSharingService sharingServiceNamed: 
>>> NSSharingServiceNameSendViaAirDrop];
>>>     service.delegate = self;        //      probably not needed
>>>     [service performWithItems:shareItems];
>>> }
>>> 
>>> Usually this just works:
>>> I click the AirDrop button, a Panel slides down with a picture of the pdf 
>>> (or a symbol for multiple files if more than one).
>>> I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
>>> The AirDrop panel on the Mac shows (after a few seconds) my Mac Login 
>>> picture, I click it, and all is well.
>>> 
>>> Sometimes it does not work correctly:
>>> In this case I have to set the iPad to “AirDrop: Everyone". A generic user 
>>> picture will appear on the Mac and it will still work.
>>> 
>>> But sometimes it does not work at all: 
>>> I can do whatever (like restarting the iPad; restarting the Mac) but still 
>>> no picture of a recipient will appear in the Mac AirDrop Panel. 
>>> 
>>> How can I debug this?
>>> 
>>> Gerriet.
>>> 
>>> Found some log messages, which seem to be related:
>>> 
>>> Clicking my AirDrop button:
>>> 
>>> 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
>>> started
>>> 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser 
>>> Powered On
>>> 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising 
>>> hashes <01ca38ce b5742b51 4900>
>>> 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
>>> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
>>> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
>>> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
>>> this time.}
>>> 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
>>> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
>>> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
>>> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
>>> this time.}
>>> 
>>> Clicking “Cancel" in the AirDrop Panel:
>>> 
>>> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
>>> CoreDragRemoveTrackingHandler: -1856
>>> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
>>> CoreDragRemoveReceiveHandler: -1856
>>> 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
>>> stopped
>>> 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising 
>>> stopped
>>> 
>>> But still don’t know what to do.
>>> 
>>> Gerriet.
>> 
> 
> 
> _______________________________________________
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/jens%40mooseyard.com
> 
> This email sent to j...@mooseyard.com


_______________________________________________

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

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

Reply via email to