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.
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]