NSPredicateEditor query

2016-12-14 Thread Jonathan Mitchell
I have an NSPredicateEditor configured to generate my queries. I have two questions: 1. I want my users to be able to construct queries from a simple initial predicate. Ideally I would like the initial predicate to operate on a single key path and look something like: @"(self.fullName

VoiceOver/Accessibility of transparent UIView, navigating through subviews in VoiceOver

2016-12-14 Thread Motti Shneor
Hello. I’m trying to make parts of my iOS app accessible, and find myself stumped. I have some video playing in a plain UIView. A custom (subclass of UIView) subview is displayed over the video view, containing a hierarchy of views, UIControls (buttons, progress bars, labels etc.). This

VoiceOver/Accessibility of transparent UIView

2016-12-14 Thread Motti Shneor
___ 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:

Re: Control default color inconsistencies

2016-12-14 Thread じょいすじょん
> On 2016 Dec 15, at 0:47, Andreas Falkenhahn wrote: > > I'm creating my GUI programmatically. It simply consists of a UILabel, > a UITableView and two UIButtons. > > When creating those three controls I've noticed that they all seem to > use different color schemes by

Control default color inconsistencies

2016-12-14 Thread Andreas Falkenhahn
I'm creating my GUI programmatically. It simply consists of a UILabel, a UITableView and two UIButtons. When creating those three controls I've noticed that they all seem to use different color schemes by default which makes the GUI look rather silly. Here are my observations: 1) By default,

Re: Users default alert sound

2016-12-14 Thread Quincey Morris
On Dec 14, 2016, at 09:45 , Sandor Szatmari wrote: > > I am currently using [NSSound soundNamed:] to play any arbitrary sound. But > I want to play the one configured in System Preferences. You can use the NSBeep () global function to play the configured alert

Re: Users default alert sound

2016-12-14 Thread Britt Durbrow
Also, not everyone *has* a sound that plays… if the volume is turned all the way down, or if they have a hearing issue, for example, they will often have the screen flash turned on; calling NSBeep() triggers this correctly. > On Dec 14, 2016, at 10:51 AM, Sandor Szatmari

Autolayout warnings

2016-12-14 Thread Doug Hill
I'm seeing warnings in the console when I dynamically make autolayout constraints active/inactive at runtime. I have two constraints that align a container view leading or trailing edge with another view's edge. This is to move the container onscreen or offscreen. I have another view whose

Re: Control default color inconsistencies

2016-12-14 Thread Gary L. Wade
Set the background color of self.view to something other than black and your button and label will be more visible. I believe the color for your table view is a UIColor defined as a category in UITableView.h or close to there. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On

Re: Control default color inconsistencies

2016-12-14 Thread Quincey Morris
On Dec 14, 2016, at 09:38 , Andreas Falkenhahn wrote: > > But, as I wrote in > my last mail, this default look is pretty confusing and irritating because > background and foreground color aren't consistent at all. You’re assuming that the “default” colors of the various

Re: Users default alert sound

2016-12-14 Thread Sandor Szatmari
I didn't know that automatically played the configured sound. That's great thanks! I knew I was missing something straightforward. Sandor > On Dec 14, 2016, at 12:58, Quincey Morris > wrote: > >> On Dec 14, 2016, at 09:45 , Sandor Szatmari

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
Quincey, Thanks for the reply. > On Dec 14, 2016, at 2:40 PM, Quincey Morris > wrote: > > On Dec 14, 2016, at 14:19 , Doug Hill > wrote: >> >>"> UIView:0x7f91426d9db0.width ==

Re: Autolayout warnings

2016-12-14 Thread Quincey Morris
On Dec 14, 2016, at 14:19 , Doug Hill wrote: > >" UIView:0x7f91426d9db0.width == 0.33*UIView:0x7f91426def30.width>", >" H:[UIView:0x7f91426d7f00]-(0)-[UIView:0x7f91426d9db0]>", >" UIView:0x7f91426d9db0.trailing == UIView:0x7f91426d7f00.trailing>", >"

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
> On Dec 14, 2016, at 2:46 PM, Ken Thomases wrote: > > On Dec 14, 2016, at 4:19 PM, Doug Hill wrote: >> >> I'm seeing warnings in the console when I dynamically make autolayout >> constraints active/inactive at runtime. >> >> I have two constraints

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
Ok, this is more good information to keep in mind when designing autolayout constraints. Given that my design isn't animatable, it's back to the autolayout drawing board. Again. Doug Hill > On Dec 14, 2016, at 3:07 PM, Gary L. Wade > wrote: > > Right, activate

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
Gary, Thanks for the reply. I tried moving the container rather than resizing to 0 because there's a table inside this view and it will relayout when resizing. For an animation, I guess it depends on what effect you want: either seeing the view move or resize to 0. Oddly, when I put my code to

Re: Autolayout warnings

2016-12-14 Thread Ken Thomases
On Dec 14, 2016, at 5:15 PM, Doug Hill wrote: > > Ok, this is more good information to keep in mind when designing autolayout > constraints. Given that my design isn't animatable, it's back to the > autolayout drawing board. Again. I think it works to animate a change of

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
Great, more good stuff to know! However, trying this out I see that some views animate and others don't (just jump into place). I guess I'll look into a more animatable design. Doug Hill > On Dec 14, 2016, at 3:24 PM, Ken Thomases wrote: > > On Dec 14, 2016, at 5:15 PM,

Re: Users default alert sound

2016-12-14 Thread Sandor Szatmari
Bonus! Thanks for sharing! Sandor > On Dec 14, 2016, at 17:03, Britt Durbrow > wrote: > > Also, not everyone *has* a sound that plays… if the volume is turned all the > way down, or if they have a hearing issue, for example, they will often have > the

Re: Autolayout warnings

2016-12-14 Thread Ken Thomases
On Dec 14, 2016, at 4:19 PM, Doug Hill wrote: > > I'm seeing warnings in the console when I dynamically make autolayout > constraints active/inactive at runtime. > > I have two constraints that align a container view leading or trailing edge > with another view's edge.

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
If I understand you correctly, you might prefer the approach I chose to do. Rather than activating and deactivating constraints (BTW, you should always deactivate before having multiple actives), set your constraints up to always be active but change the width for the one you’re hiding to 0

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
Right, activate and deactivate are not animatable, but the constant values in constraints are. True, it depends on what you’re showing as to whether to shrink or move your view. When I wanted to use a search bar in UISearchController with a collection view in iOS to appear similarly as

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
In case it helps with your future animatable design, my particular app has a layout kind of like this: —— | | (8 points separation)Title (could be long) | | (8 points separation)Subtitle (could be long) —— and I used something like this in viewDidLoad to preserve the values before I

Users default alert sound

2016-12-14 Thread Sandor Szatmari
How do you determine the name of the sound as configured in 'System Preferences' > Sound > 'Sound Effects' > 'Select an alert sound:'? What I'm trying to do: I want to play the alert sound under certain circumstances. I am currently using [NSSound soundNamed:] to play any arbitrary sound.

Re: Control default color inconsistencies

2016-12-14 Thread Andreas Falkenhahn
On 14.12.2016 at 18:41 Alex Zavatone wrote: > On Dec 14, 2016, at 9:47 AM, Andreas Falkenhahn wrote: > I'm creating my GUI programmatically. It simply consists of a UILabel, > a UITableView and two UIButtons. > Mac OS or iOS? Please state the specifics first so that we can > stop reading if we

Re: Control default color inconsistencies

2016-12-14 Thread Gary L. Wade
Seeing code and how you have things visually laid out will help, but most likely what you think are black backgrounds may be clear backgrounds showing through to another view or super view that has black as its background color. You may have very valid reasons for doing this in code, but before

Re: Control default color inconsistencies

2016-12-14 Thread Andreas Falkenhahn
On 14.12.2016 at 17:54 じょいすじょん wrote: > Nobody can guess what you are actually doing. > Please share some code so people can help you. There is not much code to share. My code just creates UILabel, UIButton, and UITableView with absolutely minimal customization, the intention being to check out

Re: Control default color inconsistencies

2016-12-14 Thread Alex Zavatone
On Dec 14, 2016, at 9:47 AM, Andreas Falkenhahn wrote: > I'm creating my GUI programmatically. It simply consists of a UILabel, > a UITableView and two UIButtons. Mac OS or iOS? Please state the specifics first so that we can stop reading if we don't have experience in the area of your