What does connect NSScreens with IODisplays?

2015-12-26 Thread Hado Hein Applelists
Hi,
for a kiosk project I’m trying to identify displays and set the screen 
arrangement to my needs.

This works well in cocoa/CoreGraphics with VendorID, ProductID and Serial 
number.
This works also well if I travers IORegistry for IODisplays.
But unfortunately sometimes I have similar displays without a serial number. 
Thus I cannot distinguish one display from another since their vendor and 
product ids are the same.

How do I resolve which IODisplay is on what port of the machine and how do I 
resolve the IODisplay from/to NSScreen ?

thx,
___

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: My alert is not firing at all

2015-12-26 Thread Roland King
Mine definitely shows the message so two thoughts

1) the message is really long and you’ve upset the UIAlertController, can you 
try a shorter one? 
2) it is showing the message but in a way which voiceover isn’t reading.

I have exactly the same type, an .Alert type, and I have a message. I have two 
buttons on mine, but I can’t think that would count as enough of a difference .

> On 26 Dec 2015, at 20:26, Scott Berry  wrote:
> 
> Hey there,
> 
> It doesn’t actually show me the message.  I see the Okay button but not the 
> message itself.
> 
> 
>> On Dec 26, 2015, at 5:11 AM, Roland King  wrote:
>> 
>> What do you mean by it doesn’t fire? It doesn’t show the alert, or it 
>> doesn’t do anything after it shows the alert when you hit the dismiss 
>> button? 
>> 
>> I wrote code very similar to this today .. with an extra button or two, and 
>> it was fine. 
>> 
>>> On 26 Dec 2015, at 19:40, Scott Berry  wrote:
>>> 
>>> Hello there,
>>> 
>>> Here is the code I wrote to fire off my alert but when I run the program on 
>>> the device the alert doesn’t want to fire so I am wondering what I have 
>>> done wrong.  I use Voiceover.
>>> 
>>> // Alert Message for first load.
>>>  @IBAction func buttonTapped(sender: AnyObject) {
>>>  let alertController = UIAlertController(title: "First Run Database 
>>> Alert", message:
>>>  "Welcome to Flying With Voice!  Please allow us to gather some 
>>> airport information.  Talking Technologies is not responsible if you do not 
>>> allow us to gather this information every 56 (fifty-six) days.", 
>>> preferredStyle: UIAlertControllerStyle.Alert)
>>>  alertController.addAction(UIAlertAction(title: "Dismiss", style: 
>>> UIAlertActionStyle.Default,
>>>  handler: nil))
>>> 
>>>  self.presentViewController(alertController, animated: true, 
>>> completion: nil)
>>>  }
>>> 
>>> ___
>>> 
>>> 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/rols%40rols.org
>>> 
>>> This email sent to r...@rols.org
>> 
> 


___

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: My alert is not firing at all

2015-12-26 Thread Jack Carbaugh
Is it connected to the interface ? if you’re tapping the button and it’s not 
working, first place to look is to see if the button is connected to the action.

> On Dec 26, 2015, at 7:11 AM, Roland King  wrote:
> 
> What do you mean by it doesn’t fire? It doesn’t show the alert, or it doesn’t 
> do anything after it shows the alert when you hit the dismiss button? 
> 
> I wrote code very similar to this today .. with an extra button or two, and 
> it was fine. 
> 
>> On 26 Dec 2015, at 19:40, Scott Berry  wrote:
>> 
>>  Hello there,
>> 
>> Here is the code I wrote to fire off my alert but when I run the program on 
>> the device the alert doesn’t want to fire so I am wondering what I have done 
>> wrong.  I use Voiceover.
>> 
>> // Alert Message for first load.
>>   @IBAction func buttonTapped(sender: AnyObject) {
>>   let alertController = UIAlertController(title: "First Run Database 
>> Alert", message:
>>   "Welcome to Flying With Voice!  Please allow us to gather some 
>> airport information.  Talking Technologies is not responsible if you do not 
>> allow us to gather this information every 56 (fifty-six) days.", 
>> preferredStyle: UIAlertControllerStyle.Alert)
>>   alertController.addAction(UIAlertAction(title: "Dismiss", style: 
>> UIAlertActionStyle.Default,
>>   handler: nil))
>> 
>>   self.presentViewController(alertController, animated: true, 
>> completion: nil)
>>   }
>> 
>> ___
>> 
>> 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/rols%40rols.org
>> 
>> This email sent to r...@rols.org
> 
> 
> ___
> 
> 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/intrntmn%40aol.com
> 
> This email sent to intrn...@aol.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: My alert is not firing at all

2015-12-26 Thread Roland King
What do you mean by it doesn’t fire? It doesn’t show the alert, or it doesn’t 
do anything after it shows the alert when you hit the dismiss button? 

I wrote code very similar to this today .. with an extra button or two, and it 
was fine. 

> On 26 Dec 2015, at 19:40, Scott Berry  wrote:
> 
>   Hello there,
> 
> Here is the code I wrote to fire off my alert but when I run the program on 
> the device the alert doesn’t want to fire so I am wondering what I have done 
> wrong.  I use Voiceover.
> 
> // Alert Message for first load.
>@IBAction func buttonTapped(sender: AnyObject) {
>let alertController = UIAlertController(title: "First Run Database 
> Alert", message:
>"Welcome to Flying With Voice!  Please allow us to gather some 
> airport information.  Talking Technologies is not responsible if you do not 
> allow us to gather this information every 56 (fifty-six) days.", 
> preferredStyle: UIAlertControllerStyle.Alert)
>alertController.addAction(UIAlertAction(title: "Dismiss", style: 
> UIAlertActionStyle.Default,
>handler: nil))
> 
>self.presentViewController(alertController, animated: true, 
> completion: nil)
>}
> 
> ___
> 
> 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/rols%40rols.org
> 
> This email sent to r...@rols.org


___

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

My alert is not firing at all

2015-12-26 Thread Scott Berry
Hello there,

Here is the code I wrote to fire off my alert but when I run the program on the 
device the alert doesn’t want to fire so I am wondering what I have done wrong. 
 I use Voiceover.

// Alert Message for first load.
@IBAction func buttonTapped(sender: AnyObject) {
let alertController = UIAlertController(title: "First Run Database 
Alert", message:
"Welcome to Flying With Voice!  Please allow us to gather some 
airport information.  Talking Technologies is not responsible if you do not 
allow us to gather this information every 56 (fifty-six) days.", 
preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "Dismiss", style: 
UIAlertActionStyle.Default,
handler: nil))

self.presentViewController(alertController, animated: true, completion: 
nil)
}

___

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