|
CFPasteboardCreateSandboxExtensionDataFromCFData
Swifty question, macOS:
As part of its functionality, my sandboxed app allows users to search for files across the entire filesystem. In the results of the search (displayed in an NSTableview), I
Swifty question, macOS:
As part of its functionality, my sandboxed app allows users to search for files across the entire filesystem. In the results of the search (displayed in an NSTableview), I
|
By
2551phil
·
#1
·
|
|
Sizing NSCollectionViewItems to fit
I'm doing the development of a small app on 10.10, so all the 10.11 additions to NSCollectionView aren't available. I have a window filled with an NSCollectionView in a scrollview, which contains 1
I'm doing the development of a small app on 10.10, so all the 10.11 additions to NSCollectionView aren't available. I have a window filled with an NSCollectionView in a scrollview, which contains 1
|
By
Steve Mills
·
#2
·
|
|
Re: Sizing NSCollectionViewItems to fit
Did you call -reloadData after resizing the itemPrototype? You have to get the collection view to regenerate all the views with the newly resized prototype.
- Jon
Did you call -reloadData after resizing the itemPrototype? You have to get the collection view to regenerate all the views with the newly resized prototype.
- Jon
|
By
Jon Gotow
·
#3
·
|
|
Re: Sizing NSCollectionViewItems to fit
Annoyingly, reloadData wasn't introduced until 10.11, so that's not going to work.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
Annoyingly, reloadData wasn't introduced until 10.11, so that's not going to work.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
|
By
Steve Mills
·
#4
·
|
|
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
·
|
|
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
·
|
|
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
·
|
|
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
·
|
|
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
·
|
|
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
·
|
|
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?
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?
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?
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?
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?
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
·
|
|
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
·
|
|
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
·
|
|
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
·
|
|
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
·
|