Re: debugging AirDrop (update)

2016-05-27 Thread Gerriet M. Denkmann

> On 28 May 2016, at 02:06, Jens Alfke  wrote:
> 
> File a bug report with Apple!

Just done.

> 
> —Jens (who has intermittent troubles with AirDrop too)
> 
>> On May 27, 2016, at 10:47 AM, Gerriet M. Denkmann  
>> wrote:
>> 
>> 
>>> On 27 May 2016, at 23:18, Steve Christensen  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  
 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

Re: debugging AirDrop (update)

2016-05-27 Thread Jens Alfke
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  
> wrote:
> 
> 
>> On 27 May 2016, at 23:18, Steve Christensen  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  
>>> 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

Re: debugging AirDrop (update)

2016-05-27 Thread Gerriet M. Denkmann

> On 27 May 2016, at 23:18, Steve Christensen  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  
>> 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/archive%40mail-archive.com

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

Re: debugging AirDrop (update)

2016-05-27 Thread Steve Christensen
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?

Steve


> On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann  
> 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/archive%40mail-archive.com

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

Re: debugging AirDrop (update)

2016-05-27 Thread Charles Jenkins
My family and I all have iPhones. We often try to use AirDrop to share
photos and videos of my grandbabies. It almost never works. We’re on the
same AirPort-based wireless network and all have Bluetooth on, in case that
matters. When sitting right next to one another, Airdrop will often just
sit there not showing anyone to share to. Sometimes if you close and open
the share sheet a few times, the other person’s generic user icon will
appear in the share sheet, and when it does the transfers always seem to
succeed. But discovery seems to be an issue with AirDrop in general, so
these problems you experience may not be due in any way to problems within
your app.

On Fri, May 27, 2016 at 1:23 AM, Gerriet M. Denkmann 
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/cejwork%40gmail.com
>
> This email sent to cejw...@gmail.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

Re: NSSplitViewController changes split size when changing viewcontrollers

2016-05-27 Thread Rick Mann
Seems like setting the behavior of my left-side NSSplitViewItem to "Content 
List" fixes it right up.

> On May 26, 2016, at 20:07 , Rick Mann  wrote:
> 
> In my master-detail UI, selecting something on the left side of the split 
> changes the view controller on the right (by removing the current one and 
> adding the new one).
> 
> Each time I do this, it resets the position of the split based on some 
> unknown but consistent criteria (each right-side view always ends up with the 
> same width). This width is dependent on where I dragged the divider to before 
> I changed views.
> 
> Anyway, once the user has moved the slider, I really don't want it to change 
> position at all, unless there's a minimum/maximum width imposed by the sub 
> views. That is, if the constraints of the new view can be satisfied with the 
> current split position, it should not move the split position, but instead 
> resize subviews.
> 
> How can I get it to behave like this?
> 
> Thanks.
> 
> 
> -- 
> Rick Mann
> rm...@latencyzero.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/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick Mann
rm...@latencyzero.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