iOS 8 beta 4 messes with my TextView

2014-07-29 Thread Gerriet M. Denkmann
Master Detail app, works fine in 7.1.2. The Detail View has a UITextView. Whenever I get a Keyboard Notification (Changed) I change the height of the TextView accordingly. All would be fine; but after all Notifications have been delivered and before I can start typing, some evil agent resets the

How to constrain a UISlider in a UIToolbar?

2014-07-29 Thread Gerriet M. Denkmann
I have a UIToolbar which contains a UISlider, flanked by two flexible spaces. I would like to have this slider to be as big as possible. Setting it's width does not make sense, as the UIToolbar width changes, depending on device and orientation. And setting constraints on the slider seems to be i

Re: iOS 8 beta 4 messes with my TextView

2014-07-29 Thread Kyle Sluder
On Jul 29, 2014, at 1:58 AM, "Gerriet M. Denkmann" wrote: > > Master Detail app, works fine in 7.1.2. > The Detail View has a UITextView. > Whenever I get a Keyboard Notification (Changed) I change the height of the > TextView accordingly. > > All would be fine; but after all Notifications have

Re: How to constrain a UISlider in a UIToolbar?

2014-07-29 Thread Kyle Sluder
> On Jul 29, 2014, at 2:34 AM, "Gerriet M. Denkmann" > wrote: > > I have a UIToolbar which contains a UISlider, flanked by two flexible spaces. > I would like to have this slider to be as big as possible. > Setting it's width does not make sense, as the UIToolbar width changes, > depending on d

Re: iOS 8 beta 4 messes with my TextView

2014-07-29 Thread Scott Andrew
You can also change the constraint. It sounds like you vs auto-layout. Sent from my iPhone > On Jul 29, 2014, at 8:06 AM, Kyle Sluder wrote: > >> On Jul 29, 2014, at 1:58 AM, "Gerriet M. Denkmann" >> wrote: >> >> Master Detail app, works fine in 7.1.2. >> The Detail View has a UITextView. >

Re: OS X play a video?

2014-07-29 Thread douglas welton
Check out AVPlayerView (which is in the AVKit framework) and AVPlayer. On Jul 26, 2014, at 11:30 PM, Eric E. Dolecki wrote: > I've been googling a while and haven't found anything solid yet. I've been > doing a lot of iOS development, this is my first journey into OS X. > AVSimplePlayer required

Re: OS X play a video?

2014-07-29 Thread Eric E Dolecki
Got it all working. It's awesome and works easy peasy for straight audio too! Eric > On Jul 29, 2014, at 4:21 PM, douglas welton > wrote: > > Check out AVPlayerView (which is in the AVKit framework) and AVPlayer. > >> On Jul 26, 2014, at 11:30 PM, Eric E. Dolecki wrote: >> >> I've been goog

Autolayout frustrations with NSOutlineView

2014-07-29 Thread Graham Cox
I'm having problems adopting autolayout in part of my UI which is built around NSOutlineView. My requirements are straightforward, I believe. The outline view can scroll vertically but not horizontally, so its width should follow the width of the scrollview/clip view that contains it. The width

Re: Autolayout frustrations with NSOutlineView

2014-07-29 Thread Kyle Sluder
On Tue, Jul 29, 2014, at 08:12 PM, Graham Cox wrote: > I'm having problems adopting autolayout in part of my UI which is built > around NSOutlineView. > > My requirements are straightforward, I believe. The outline view can > scroll vertically but not horizontally, so its width should follow the >

Re: Autolayout frustrations with NSOutlineView

2014-07-29 Thread Graham Cox
On 30 Jul 2014, at 11:17 am, Kyle Sluder wrote: > You should not be trying to install constraints on the outline view. OK, well I can't anyway. > What is your actual goal? The table width should equal the enclosing scroller width. > Just to have width-sizing? That's dictated by > the column

Re: Autolayout frustrations with NSOutlineView

2014-07-29 Thread Roland King
> > One of the things I'm a bit unclear on is the 'content compression resistance > priority' of the outline view, which I've set to be a lowish number (90), my > thinking being that I want it to compress readily, so this value should be > 'weak'. Or does that imply this should be a high numbe

Re: Autolayout frustrations with NSOutlineView [SOLVED, +follow-up question]

2014-07-29 Thread Graham Cox
On 30 Jul 2014, at 11:28 am, Graham Cox wrote: > The table width should equal the enclosing scroller width. > > >> Just to have width-sizing? That's dictated by >> the column autosizing mode. > > > I have that set to 'last column only', and 'resizing' is enabled. This is a > view-based tabl

Re: Autolayout frustrations with NSOutlineView [SOLVED, +follow-up question]

2014-07-29 Thread Quincey Morris
On Jul 29, 2014, at 18:52 , Graham Cox wrote: > What I want is to have my enclosed custom view 'stick' to the top, left (or > wherever it's scrolled to) of the clip view as long as it's larger than the > clip view, but become horizontally and vertically centered in the clip view > if it's smal

Re: iOS 8 beta 4 messes with my TextView

2014-07-29 Thread Gerriet M. Denkmann
On 29 Jul 2014, at 22:06, Kyle Sluder wrote: > On Jul 29, 2014, at 1:58 AM, "Gerriet M. Denkmann" > wrote: >> >> Master Detail app, works fine in 7.1.2. >> The Detail View has a UITextView. >> Whenever I get a Keyboard Notification (Changed) I change the height of the >> TextView accordingly

Re: How to constrain a UISlider in a UIToolbar?

2014-07-29 Thread Gerriet M. Denkmann
On 29 Jul 2014, at 22:14, Kyle Sluder wrote: >> On Jul 29, 2014, at 2:34 AM, "Gerriet M. Denkmann" >> wrote: >> >> I have a UIToolbar which contains a UISlider, flanked by two flexible spaces. >> I would like to have this slider to be as big as possible. >> Setting it's width does not make se

Re: How to constrain a UISlider in a UIToolbar?

2014-07-29 Thread Kyle Sluder
> On Jul 29, 2014, at 9:11 PM, "Gerriet M. Denkmann" > wrote: > > > But nobody ever cares to call sizeThatFits or systemLayoutSizeFittingSize. > > Overriding requiresConstraintBasedLayout and returning either YES or NO makes > no difference. > > Anything else I forgot to override? Hmm, I'm

Re: Autolayout frustrations with NSOutlineView [SOLVED, +follow-up question]

2014-07-29 Thread Graham Cox
On 30 Jul 2014, at 12:42 pm, Quincey Morris wrote: > On Jul 29, 2014, at 18:52 , Graham Cox wrote: > >> What I want is to have my enclosed custom view 'stick' to the top, left (or >> wherever it's scrolled to) of the clip view as long as it's larger than the >> clip view, but become horizon

start with OSX 5.1.1

2014-07-29 Thread N!K
After using Xcode 3.2.6 occasionally, I downloaded 5.1.1 and typed in a very simple program in .h and .m to try it out. Run immediately generated the error "The run destination My Mac 64–bit is not valid for Running the scheme ‘var,prop,synth'. The scheme 'var,prop,synth' contains no buildable

Re: How to constrain a UISlider in a UIToolbar?

2014-07-29 Thread Gerriet M. Denkmann
On 30 Jul 2014, at 11:27, Kyle Sluder wrote: >> On Jul 29, 2014, at 9:11 PM, "Gerriet M. Denkmann" >> wrote: >> >> >> But nobody ever cares to call sizeThatFits or systemLayoutSizeFittingSize. >> >> Overriding requiresConstraintBasedLayout and returning either YES or NO >> makes no differe

Re: start with OSX 5.1.1

2014-07-29 Thread Graham Cox
On 30 Jul 2014, at 4:02 pm, N!K wrote: > After using Xcode 3.2.6 occasionally, I downloaded 5.1.1 and typed in a very > simple program in .h and .m to try it out. Well, what did you type? It's not really usual to start an OSX project by typing code, at least until you have a working template