Search results for

“column”

2,092 results found

Post

Replies

Boosts

Views

Activity

SwiftUI dynamic number of columns with LazyVGrid
As a septuagenarian my memory is prone to leaks and I therefore rely on this forum and Stack Overflow for discovering (rediscovering?) solutions to problems. I like to give back when I can, so here goes..... I'm currently doing a project with a variable number of BLE sensors at varying locations and want to display a neat table (grid) of Observations and Locations (in pure SwiftUI) like this: Temperature: Locn1_value, Locn2_value , ..... Locnx_value, obsTime Humidity: Locn1_value, Locn2_value ..... Locnxvalue, obsTime (optionally more sensors) The SwiftUI View is: struct SensorObservationsView: View { let sensorServer = SensorServer.shared @State var latestObservations = [ObservationSummary]() @State var obsColumns = Array(repeating: GridItem(.flexible(),spacing: 20), count: 4) var body: some View { VStack{ ForEach(latestObservations,id: .id) { latestObs in HStack{ LazyVGrid(columns: obsColumns, content: { Text(latestObs.id) .foregroundColor(latestObs.colour) ForEach(latestObs.summaryRows, id:.id) {
2
0
3.4k
Mar ’21
Files Column View Missing
Hi,I started with the beta at V4. I realized right there that the column view is missing from my Files app. I hoped it will work itself out on V5 and it didn't. Sane hope for the new V6. Again no avail. Don't see how to attach a screenshot but it's dead simple: There's just the single symbol up top in the Flies App and not three. Flipping the display doesn't change anything either...- Anyone else with that issue?- Any hidden setting that I am missing out?Specs: IPad Pro 11 with iPadOS beta6Cheers
0
0
402
Aug ’19
Finder Custom Columns For Extended Attributes
Hello,I would like to add a custom column in the Finder and show my custom properties of a file or folder. I know we can set our own custom properties (aka extended properties) using xattr. However currently there is no way I can show these values in Finder. I could use Tags or Comments columns but they are not ideal. On Windows we could show custom properties of a file using shell extension and other stuff. Is this possible in Mac OS?Thanks,-Anish
1
0
1.1k
Jul ’15
Font Collection Column Missing
I've encountered that bug where the font picker in Interface Builder is stuck on one font collection (in this case monospace). When I resize the window, I see the Collection collumn while resizing the window; but as soon as I let to, the Family column slides to the left and obscures it. Does anybody know of a workaround? Really want to be able to select other fonts.
12
0
2.9k
Jan ’16
Safari and UIWebView: difference in rendering columns between iOS versions
I am seeing a difference in behaviour for column rendering in both UIWebView and Safari depending on the iOS version. See this link for example:https://mobile.content.hmhco.com/HMHGMA/tmp/OPS/sample.htmlWith the link above, the HTML body specifies the following for heights:min-height:924pxmax-height:1000pxOpening this link in Safari on a device with iOS less that 10.3, the height of columns (as shown in Box Model using Safari Develop tab on Mac) is 924.In iOS 10.3 (beta 4): the height of the columns is 1000.This means there is different content on the pages between the two iOS versions (i.e. more content per page on iOS 10.3). As you can see by viewing the sample on the two iOS', in any iOS < 10.3 the first column ends with civilisation to develop in Egypt whereas on iOS 10.3 there is extra text at the end of the column.Additional info:- The same differences as reported above between the iOS' also occur with Chrome browser on device (i.e. columns rendered differ
2
0
3.6k
Mar ’17
SwiftUI Table column widths cannot be saved
I have a macOS app made with SwiftUI where I want to show a list of data in a tabular fashion. SwiftUI Table seems to be the only built-in component that can do this. I would like to let the user size the columns and have their widths restored when the app is relaunched. I can find no documentation on how to do this and it does not seem to be saved and restored automatically. I can find no way to listen for changes in the column widths when the user resizes and no way to set the size from code. For a macOS app it seems that the only way to set the width of a column is to use e.g. .width(min: 200, max: 200). This in effect disables resizing of the column. It seems that idealSize is totally ignored on macOS. Any suggestions?
2
0
401
Feb ’25
Pagination (Column, Row) info when printing?
Is there a built-in functionality to retrieve the current column and row during a print operation when using the built-in pagination mechanism of NSView? All I could find in the general printing documentation and for the NSPrintOperation and NSPrintInfo classes is the NSPrintOperation.currentOperation.currentPage property. I'm basically attempting to access the 'address' (page number or row/column) of pages bordering to the left/right/above/below the current page to enable assembly constructions being shown to the user on printouts spanning multiple pages. Hope this makes sense. Thanks, Jay
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
996
Dec ’22
TextKit2 Multi Column Layout
I'm trying to implement a multi column layout for a hex editor using TextKit2. I'm using the sample App named LayoutTextWithTextKit2 as my starting point, but I'm struggling to understand what the best approach could be to implement it. My doubts are: Is it a good idea to use a text element for a single line in a single column? I'm basing my text element on NSTextParagraph. Following my previous question, is there any way to layout these text elements horizontally in a single line, instead of having the layout engine automatically lay them out in a vertical stack? Where is the correct location where I can override the positioning for each text element manually if I wanted to not base my elements in NSTextParagraph? Would this be a good idea? I apologize for the many questions, but my basic problem is that it's not clear to me if I'm missing something that's obvious, and there's a simple way to address my troubles. Any guidance towards that goal, even beyond my questions above, will be apprec
0
0
1.1k
Sep ’22
NSFetchedResultsController SUBQUERY no such column
I am having issues with subqueries in the predicate for the fetch request of an NSFetchResultsController. Basically the object I'm fetching on has a to-One relationship that has a to-Many relationship that I am performing the subquery on, so it looks like this Target <<--> Person <<-->> ExtendedProperty. I am fetching all targets that have a specific name/value in the extendedProperty of the target's person.Here is what my predicate looks likerequest.predicate = NSPredicate(format: SUBQUERY(person.extendedProperties, $extProp, $extProp.name == %@ && $extProp.value == %@).@count > 0, favorite color, red)When I try to use this I don't get any results and the console outputs2015-09-08 17:33:26.206 CoreDataBug[2019:313174] CoreData: error: (1) I/O error for database at /var/mobile/Containers/Data/Application/EAFFE09B-D259-4917-A13F-2D46D0D81816/Documents/CoreDataBug.sqlite. SQLite error code:1, 'no such column: t2.ZNAME'I'm trying to figure out if I'm doing something wrong
4
0
908
Sep ’15
SwiftUI dynamic number of columns with LazyVGrid
As a septuagenarian my memory is prone to leaks and I therefore rely on this forum and Stack Overflow for discovering (rediscovering?) solutions to problems. I like to give back when I can, so here goes..... I'm currently doing a project with a variable number of BLE sensors at varying locations and want to display a neat table (grid) of Observations and Locations (in pure SwiftUI) like this: Temperature: Locn1_value, Locn2_value , ..... Locnx_value, obsTime Humidity: Locn1_value, Locn2_value ..... Locnxvalue, obsTime (optionally more sensors) The SwiftUI View is: struct SensorObservationsView: View { let sensorServer = SensorServer.shared @State var latestObservations = [ObservationSummary]() @State var obsColumns = Array(repeating: GridItem(.flexible(),spacing: 20), count: 4) var body: some View { VStack{ ForEach(latestObservations,id: .id) { latestObs in HStack{ LazyVGrid(columns: obsColumns, content: { Text(latestObs.id) .foregroundColor(latestObs.colour) ForEach(latestObs.summaryRows, id:.id) {
Replies
2
Boosts
0
Views
3.4k
Activity
Mar ’21
Can MLrecommender use more than one item column?
I have created a little recommendation application using Core ML and MLrecommender. Can I select multiple item column to prediction?
Replies
0
Boosts
0
Views
395
Activity
Dec ’20
Files Column View Missing
Hi,I started with the beta at V4. I realized right there that the column view is missing from my Files app. I hoped it will work itself out on V5 and it didn't. Sane hope for the new V6. Again no avail. Don't see how to attach a screenshot but it's dead simple: There's just the single symbol up top in the Flies App and not three. Flipping the display doesn't change anything either...- Anyone else with that issue?- Any hidden setting that I am missing out?Specs: IPad Pro 11 with iPadOS beta6Cheers
Replies
0
Boosts
0
Views
402
Activity
Aug ’19
Finder Custom Columns For Extended Attributes
Hello,I would like to add a custom column in the Finder and show my custom properties of a file or folder. I know we can set our own custom properties (aka extended properties) using xattr. However currently there is no way I can show these values in Finder. I could use Tags or Comments columns but they are not ideal. On Windows we could show custom properties of a file using shell extension and other stuff. Is this possible in Mac OS?Thanks,-Anish
Replies
1
Boosts
0
Views
1.1k
Activity
Jul ’15
Font Collection Column Missing
I've encountered that bug where the font picker in Interface Builder is stuck on one font collection (in this case monospace). When I resize the window, I see the Collection collumn while resizing the window; but as soon as I let to, the Family column slides to the left and obscures it. Does anybody know of a workaround? Really want to be able to select other fonts.
Replies
12
Boosts
0
Views
2.9k
Activity
Jan ’16
Safari and UIWebView: difference in rendering columns between iOS versions
I am seeing a difference in behaviour for column rendering in both UIWebView and Safari depending on the iOS version. See this link for example:https://mobile.content.hmhco.com/HMHGMA/tmp/OPS/sample.htmlWith the link above, the HTML body specifies the following for heights:min-height:924pxmax-height:1000pxOpening this link in Safari on a device with iOS less that 10.3, the height of columns (as shown in Box Model using Safari Develop tab on Mac) is 924.In iOS 10.3 (beta 4): the height of the columns is 1000.This means there is different content on the pages between the two iOS versions (i.e. more content per page on iOS 10.3). As you can see by viewing the sample on the two iOS', in any iOS < 10.3 the first column ends with civilisation to develop in Egypt whereas on iOS 10.3 there is extra text at the end of the column.Additional info:- The same differences as reported above between the iOS' also occur with Chrome browser on device (i.e. columns rendered differ
Replies
2
Boosts
0
Views
3.6k
Activity
Mar ’17
SwiftUI Table column widths cannot be saved
I have a macOS app made with SwiftUI where I want to show a list of data in a tabular fashion. SwiftUI Table seems to be the only built-in component that can do this. I would like to let the user size the columns and have their widths restored when the app is relaunched. I can find no documentation on how to do this and it does not seem to be saved and restored automatically. I can find no way to listen for changes in the column widths when the user resizes and no way to set the size from code. For a macOS app it seems that the only way to set the width of a column is to use e.g. .width(min: 200, max: 200). This in effect disables resizing of the column. It seems that idealSize is totally ignored on macOS. Any suggestions?
Replies
2
Boosts
0
Views
401
Activity
Feb ’25
Pagination (Column, Row) info when printing?
Is there a built-in functionality to retrieve the current column and row during a print operation when using the built-in pagination mechanism of NSView? All I could find in the general printing documentation and for the NSPrintOperation and NSPrintInfo classes is the NSPrintOperation.currentOperation.currentPage property. I'm basically attempting to access the 'address' (page number or row/column) of pages bordering to the left/right/above/below the current page to enable assembly constructions being shown to the user on printouts spanning multiple pages. Hope this makes sense. Thanks, Jay
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
0
Boosts
0
Views
996
Activity
Dec ’22
SwiftUI MacOS Table - dynamic columns
Have a working table but would like to build it using dynamic columns, but no examples exist and the Path-ing may be an issue as it refers to specific attributes, which are dynamic.
Replies
0
Boosts
0
Views
363
Activity
Jan ’23
Customizing Back Button in Column 2 "Content" in SplitView
Hi, How can I customize the Back Button in Column 2 Content in SplitView, like changing its color, label, icon ? Also is it possible to keep it visible even when Column 1 is shown and make it work like toggling showing and hiding Column 1 ? Kindest Regards
Replies
2
Boosts
0
Views
536
Activity
Dec ’23
How to add multi columns in 1 view?
I custome mainpage of application, and it's have more columns. So how to I can do it?It's look like photo in here link: http://techcrunch.com/2014/10/09/facebook-photo-collage/Thank you!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
204
Activity
Oct ’15
TextKit2 Multi Column Layout
I'm trying to implement a multi column layout for a hex editor using TextKit2. I'm using the sample App named LayoutTextWithTextKit2 as my starting point, but I'm struggling to understand what the best approach could be to implement it. My doubts are: Is it a good idea to use a text element for a single line in a single column? I'm basing my text element on NSTextParagraph. Following my previous question, is there any way to layout these text elements horizontally in a single line, instead of having the layout engine automatically lay them out in a vertical stack? Where is the correct location where I can override the positioning for each text element manually if I wanted to not base my elements in NSTextParagraph? Would this be a good idea? I apologize for the many questions, but my basic problem is that it's not clear to me if I'm missing something that's obvious, and there's a simple way to address my troubles. Any guidance towards that goal, even beyond my questions above, will be apprec
Replies
0
Boosts
0
Views
1.1k
Activity
Sep ’22
NSFetchedResultsController SUBQUERY no such column
I am having issues with subqueries in the predicate for the fetch request of an NSFetchResultsController. Basically the object I'm fetching on has a to-One relationship that has a to-Many relationship that I am performing the subquery on, so it looks like this Target <<--> Person <<-->> ExtendedProperty. I am fetching all targets that have a specific name/value in the extendedProperty of the target's person.Here is what my predicate looks likerequest.predicate = NSPredicate(format: SUBQUERY(person.extendedProperties, $extProp, $extProp.name == %@ && $extProp.value == %@).@count > 0, favorite color, red)When I try to use this I don't get any results and the console outputs2015-09-08 17:33:26.206 CoreDataBug[2019:313174] CoreData: error: (1) I/O error for database at /var/mobile/Containers/Data/Application/EAFFE09B-D259-4917-A13F-2D46D0D81816/Documents/CoreDataBug.sqlite. SQLite error code:1, 'no such column: t2.ZNAME'I'm trying to figure out if I'm doing something wrong
Replies
4
Boosts
0
Views
908
Activity
Sep ’15
Music: Does not sort by clicking on column headers
Big Sur Beta 2: In Catalina (and every previous version of both iTunes and Music) if you clicked on the column headers (Title, Time, Artist, etc.) the files would be sorted by that category. That no longer happens. Why?
Replies
1
Boosts
0
Views
709
Activity
Jul ’20
How to convert Numbers Spreadsheet with 6 columns to plist
I am developing quiz app & I want to use plist file as a database.Numbers spreadsheet has 6 columns as follows.Question | Option 1 | Option 2 | Option 3 | Option 4 | AnswerAnswer column will contain referance to actual answer from 4 options.Now how can I convert Numbers spreadsheet with 1,000 rows to single plist file?Any Help?
Replies
4
Boosts
0
Views
1.1k
Activity
May ’16