|
Life without Auto Layout
Hi All,
I spent all of yesterday and the first part of today purging Auto Layout from my Main Game View Controller and I’m soooooo happy I did it - my XCode life is so much better! Things happen
Hi All,
I spent all of yesterday and the first part of today purging Auto Layout from my Main Game View Controller and I’m soooooo happy I did it - my XCode life is so much better! Things happen
|
By
Dave
·
#24
·
|
|
Re: Alternative to Auto Layout?
This looks like something that can be almost completely solved just by using stack views (NSStackView, UIStackView).
May be worth a try.
- Andreas
This looks like something that can be almost completely solved just by using stack views (NSStackView, UIStackView).
May be worth a try.
- Andreas
|
By
Andreas Mayer
·
#23
·
|
|
Re: Scroll View Problems
I believe this is still relevant ...
https://developer.apple.com/library/content/technotes/tn2154/_index.html
Hopefully you find that helpful.
-Luther
I believe this is still relevant ...
https://developer.apple.com/library/content/technotes/tn2154/_index.html
Hopefully you find that helpful.
-Luther
|
By
Luther Baker
·
#22
·
|
|
Re: Alternative to Auto Layout?
“Why, I wouldn’t become a Mason now if you went down on your lousy stinking knees and begged me!”
—John Cleese, “The Architect Sketch”
No seriously, I hadn’t heard of this before, but it
“Why, I wouldn’t become a Mason now if you went down on your lousy stinking knees and begged me!”
—John Cleese, “The Architect Sketch”
No seriously, I hadn’t heard of this before, but it
|
By
Jens Alfke
·
#21
·
|
|
Re: Alternative to Auto Layout?
I’ve heard people speak well of Masonry, though I have no experience with it.
- Alex Zavatone
I’ve heard people speak well of Masonry, though I have no experience with it.
- Alex Zavatone
|
By
Alex Zavatone
·
#20
·
|
|
Re: Scroll View Problems
Sorry should have said, XCode 8.3.3. and iOS.
Sorry should have said, XCode 8.3.3. and iOS.
|
By
Dave
·
#19
·
|
|
Scroll View Problems
Hi All,
Do I *need* to add constraints to a Scroll View or the Views inside a Scroll View?
I’m trying to avoid applying any constraints in a View, I’ve started again using the old fashioned way
Hi All,
Do I *need* to add constraints to a Scroll View or the Views inside a Scroll View?
I’m trying to avoid applying any constraints in a View, I’ve started again using the old fashioned way
|
By
Dave
·
#18
·
|
|
boxes & glue layout?
BTW, frequently I wish for the boxes & glue (& penalties) layout model
that Plass & Knuth famously used for typesetting (TeX and all that). I
believe the default layout manager for NSTextView uses
BTW, frequently I wish for the boxes & glue (& penalties) layout model
that Plass & Knuth famously used for typesetting (TeX and all that). I
believe the default layout manager for NSTextView uses
|
By
David Young
·
#17
·
|
|
Re: Alternative to Auto Layout?
Jens, Dave,
I agree that auto-layout is a bit touchy. If it's any help, I think
that under the hood it is solving a problem in "linear programming,"
https://en.wikipedia.org/wiki/Linear_programming
Jens, Dave,
I agree that auto-layout is a bit touchy. If it's any help, I think
that under the hood it is solving a problem in "linear programming,"
https://en.wikipedia.org/wiki/Linear_programming
|
By
David Young
·
#16
·
|
|
Re: Alternative to Auto Layout?
Great. Where’s that good guide? Xcode’s own documentation is so sparse as to be useless. The 3rd party books I’ve seen are massive doorstops aimed at newbies that spend 990 pages on the basics
Great. Where’s that good guide? Xcode’s own documentation is so sparse as to be useless. The 3rd party books I’ve seen are massive doorstops aimed at newbies that spend 990 pages on the basics
|
By
Jens Alfke
·
#15
·
|
|
Re: Alternative to Auto Layout?
That’s been my opinion of auto-layout too … in theory it should be awesome, but configuring it is ridiculously complex. Every iteration of IB seems to make some of the process easier, but adds
That’s been my opinion of auto-layout too … in theory it should be awesome, but configuring it is ridiculously complex. Every iteration of IB seems to make some of the process easier, but adds
|
By
Jens Alfke
·
#14
·
|
|
Re: Alternative to Auto Layout?
Hi,
As I said, the board view is working ok with Auto Layout and also the Frame of the Player View is also working, but that’s the easy bit!
I want to display the following information:
Game: 999
Hi,
As I said, the board view is working ok with Auto Layout and also the Frame of the Player View is also working, but that’s the easy bit!
I want to display the following information:
Game: 999
|
By
Dave
·
#13
·
|
|
Re: Alternative to Auto Layout?
There isn’t one that I can find and there’s no help available just people telling me to find a good guide! If there was a good guide I’d use it - there isn’t one! So the best thing to do is no
There isn’t one that I can find and there’s no help available just people telling me to find a good guide! If there was a good guide I’d use it - there isn’t one! So the best thing to do is no
|
By
Dave
·
#12
·
|
|
Re: Alternative to Auto Layout?
It sounds like a really easy task. Unless there is something else you haven't mentioned the basic idea is to have two views that sit side-by-side, where the ratio of widths is 1:2. If so then you end
It sounds like a really easy task. Unless there is something else you haven't mentioned the basic idea is to have two views that sit side-by-side, where the ratio of widths is 1:2. If so then you end
|
By
Steve Christensen <punster@...>
·
#11
·
|
|
Re: Alternative to Auto Layout?
No. Find a good guide that will really teach you how to use it correctly and you'll thank yourself for taking the small amount of time it takes.
What's AU? Audio Units?
Steve via iPad
No. Find a good guide that will really teach you how to use it correctly and you'll thank yourself for taking the small amount of time it takes.
What's AU? Audio Units?
Steve via iPad
|
By
Steve Mills
·
#10
·
|
|
Alternative to Auto Layout?
Hi All,
Does anyone know of an alternative for Auto Layout.
I find myself wasting so much time with it as to be ridiculous, so I’d like to get away from it if possible.
I’m writing a Game for
Hi All,
Does anyone know of an alternative for Auto Layout.
I find myself wasting so much time with it as to be ridiculous, so I’d like to get away from it if possible.
I’m writing a Game for
|
By
Dave
·
#9
·
|
|
FYI: Mike Ash analyzes objc_msgsend
Mike Ash has been offline for a while, but his Friday Q&A is back with a detailed line-by-line analysis of the objc_msgsend function on ARM64. This is the core Objective-C runtime function that sends
Mike Ash has been offline for a while, but his Friday Q&A is back with a detailed line-by-line analysis of the objc_msgsend function on ARM64. This is the core Objective-C runtime function that sends
|
By
Jens Alfke
·
#8
·
|
|
How to Correctly Add subviews considering auto layout
iOS - Landscape Only.
Hi,
I have a View Controller in a Storyboard that contains a hierarchy of Stack Views, the leafs are a Custom Class that inherits from UIView. The Custom Class
LTWGameCellView :
iOS - Landscape Only.
Hi,
I have a View Controller in a Storyboard that contains a hierarchy of Stack Views, the leafs are a Custom Class that inherits from UIView. The Custom Class
LTWGameCellView :
|
By
Dave
·
#7
·
|
|
Re: Sizing NSCollectionViewItems to fit
Got it working simply by changing the collectionView.maxItemSize to the size I want in the NSViewFrameDidChangeNotification callback. Whodathunk.
Sent from iCloud's ridiculous UI, so, sorry about
Got it working simply by changing the collectionView.maxItemSize to the size I want in the NSViewFrameDidChangeNotification callback. Whodathunk.
Sent from iCloud's ridiculous UI, so, sorry about
|
By
Steve Mills
·
#6
·
|
|
Re: Sizing NSCollectionViewItems to fit
Oh right - well, there's the manual 'reloadData' method - set content to an empty array, then back to your content array :-/
- Jon
Oh right - well, there's the manual 'reloadData' method - set content to an empty array, then back to your content array :-/
- Jon
|
By
Jon Gotow
·
#5
·
|