- Where Developers Learn, Share, & Build Careers


I am using an NSAlert to ask the user to enable the utility for Accessories. Is it possible to have a button that does not turn off NSAlert which I can just use to open UniversalAccess prefpane?

If not, then I think I have to make that window myself

Thoox

Whenever a button is pressed, then it is normally normal. In Mac OS X 10.5 or later you can use setAccessoryView: to insert a custom view in the alert, which may include the button that you want.

However, you can not specify where the secondary view goes in. It may have a button in it but the button will appear in the middle of the window instead of below with other buttons (if you have a different button Choose a style, such as a square bevel for your custom button, it may appear less than the place.) To keep a complete control over the layout, you need to create your own alert window.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -