Search results for

“column”

2,091 results found

Post

Replies

Boosts

Views

Activity

Reply to initial sort of NSTableview
According to the documentation:https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/TableView/SortingTableViews/SortingTableViews.htmlsetting the table column's sortDescriptorPrototype property doesn't tell the table view that the data is sorted on that column. It just tells the table view what sort descriptor to use when the user clicks on that column header.To get the result you want, it looks like you also need to set the table view's sortDescriptors to an array whose first element is the column's sort descriptor. Unfortunately, the documentation isn't very clear on this point, so you may have to experiment a bit, to get your code to do what manually clicking on the column header does.
Topic: UI Frameworks SubTopic: AppKit Tags:
Nov ’17
Reply to How SwiftUI Table sorting works ?
Still not completely clear to me. Lets say I click on Family name column, what happens next? Does the value of sortOrder variable change if I click on Family name column? If yes, what will be the new value? Also, how can I use custom Comparator for different columns?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to This class is not key value coding-compliant error
It crashes on the return from NSTableViewDelegate code. if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: cellIdentifier), owner: nil) as? NSTableCellView { cell.textField?.stringValue = text print(cell.textField?.stringValue) return cell. ---> Crashes on this return for Column 7 } return nil }t---> Last Line of Code before crash Below is the output from the print statement I added. As you can see it crash after Column 7.. Optional(1) ---> Column 1 Optional(adf) ---> Column 2 Optional(test) ---> Column 3 Optional($450.00) ---> Column 4 Optional(Tax) ---> Column 5 Optional(3) ---> Column 6 Optional(Nov 01 2020) ---> Column 7 2020-11-12 06:32:57.660181-0600 PayMe[13901:179547] [General] [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key itemUsed. 2020-11-12 06:32:57.667836-0600 PayMe[13901:179547] [General] ( 0 CoreFoundation 0x00007ff
Nov ’20
Reply to What's the unit in NSView coordinate system
Maybe my question is too general. I have a need to calculate all width of an NSTableView. However, I found that total width of all columns is far less than NSTableView.bound.width: let width = tableView.tableColumns.reduce(0) { ac, col in ac + col.width } print(width, tableView.bounds.width) This is true even I manually adjust last column so that it fills the gap between the column and tableview right border. -----------| <- table right border last column| -----------| So I assume NSTableColumn.width and NSView.bounds.width are using different units.
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’24
Reply to This class is not key value coding-compliant error
I added a 8th column with new identifiers, change the viewController code to match this new column and it also crashes. Did you add the new column as a last one, and it crashes at the 7th or this new 8th ? You could also try to add a column before the 7th. I don't think there is any issue here, but could you print the numberOfColumns of the tableView ? PS: if you can post the full project somewhere or post for a few minutes your mail here, we could exchange files so that I I can test more extensively. Maybe there is an issue in storyboard or a xib file, but hard to say without out inspecting.
Nov ’20
Reply to macOS Monterey Xcode Update Questions (New Warnings)
I am getting the same new warning (Column selection is not supported ...) when I build on Monterey (2019 iMac). I have a custom NSTableView which contains 3 columns (all are text, two are hidden) that gets the warning. Nowhere in the code do I do anything to select a column. It does select rows, and it does do drag & drop. I have no clue why that warning is being given.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’21
Reply to [bug report] Unicode characters with "variation selectors" are not rendered in the iPhone Safari browser (webkit) with iOS 17.3
This isn't working for the Variation Selector-15 (U+FE0E) for all the characters. Can you please apply that variation selector to all your Unicode characters? I) Steps to reproduce the issue: navigate in safari to the page https://eurovot.com/vs.htm II) Expected result: as the 1st column of characters have the Variation Selector-15 (U+FE0E) applied, and the 2nd column have the Variation Selector-16 (U+FE0F) applied, the first column should always display orange characters and the second column emoji characters. III) Error result: some characters are working fine in the 1st column and displayed as text in orange colour, but some other aren't displayed as text, but displayed as emojis instead.
Topic: Safari & Web SubTopic: General Tags:
Apr ’24
Reply to What is the appropriate Create ML data shape for my use case?
As far as I understand your post, I'd approach and try it in the CreateML in the following way: CGPoint is a struct and can be initialized with doubles or ints or cgfloats. Assuming double, I would suggest that you create a column for touch locations as X1 ,Y1, X2, Y2, Y3, Y4 in series, and last column as your target (ellipse, triangle, rectangle). Each row will be your series of touches and the number of columns will be equal to the longest of your series. The shorter series can have 0 in unused columns.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Jan ’21
Reply to Unable to install app on 9.2.1
If you plug the device in to your Mac and view the console output in Xcode while installing, what errors do you see? (In Xcode, Window > Devices, choose device on left column, look at the bottom part of the right column. You may need to click the upward pointing triangle in the bottom left corner of the right hand column to show the console output.)
Feb ’16
Reply to vLookup In App?
Additionally, how does the array formatting go?Why would row 1, column 2 be 6? Are columns horizontal, and rows vertical here? Also, is there a 3-number limit per row of code? If I add a 4th number to each row, it still returns 6.SO confused regarding the order. It makes zero sense why the rows/columns aren't logically ordered.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’16
Reply to initial sort of NSTableview
According to the documentation:https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/TableView/SortingTableViews/SortingTableViews.htmlsetting the table column's sortDescriptorPrototype property doesn't tell the table view that the data is sorted on that column. It just tells the table view what sort descriptor to use when the user clicks on that column header.To get the result you want, it looks like you also need to set the table view's sortDescriptors to an array whose first element is the column's sort descriptor. Unfortunately, the documentation isn't very clear on this point, so you may have to experiment a bit, to get your code to do what manually clicking on the column header does.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Nov ’17
Reply to How SwiftUI Table sorting works ?
Still not completely clear to me. Lets say I click on Family name column, what happens next? Does the value of sortOrder variable change if I click on Family name column? If yes, what will be the new value? Also, how can I use custom Comparator for different columns?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to This class is not key value coding-compliant error
It crashes on the return from NSTableViewDelegate code. if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: cellIdentifier), owner: nil) as? NSTableCellView { cell.textField?.stringValue = text print(cell.textField?.stringValue) return cell. ---> Crashes on this return for Column 7 } return nil }t---> Last Line of Code before crash Below is the output from the print statement I added. As you can see it crash after Column 7.. Optional(1) ---> Column 1 Optional(adf) ---> Column 2 Optional(test) ---> Column 3 Optional($450.00) ---> Column 4 Optional(Tax) ---> Column 5 Optional(3) ---> Column 6 Optional(Nov 01 2020) ---> Column 7 2020-11-12 06:32:57.660181-0600 PayMe[13901:179547] [General] [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key itemUsed. 2020-11-12 06:32:57.667836-0600 PayMe[13901:179547] [General] ( 0 CoreFoundation 0x00007ff
Replies
Boosts
Views
Activity
Nov ’20
Reply to What's the unit in NSView coordinate system
Maybe my question is too general. I have a need to calculate all width of an NSTableView. However, I found that total width of all columns is far less than NSTableView.bound.width: let width = tableView.tableColumns.reduce(0) { ac, col in ac + col.width } print(width, tableView.bounds.width) This is true even I manually adjust last column so that it fills the gap between the column and tableview right border. -----------| <- table right border last column| -----------| So I assume NSTableColumn.width and NSView.bounds.width are using different units.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Mar ’24
In Apple OS 10.15 Beta using Apple Mail how to get heading text for each email column?
In Apple OS 10.15 Beta using Apple Mail how to get heading text for each email column?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
407
Activity
Sep ’19
Reply to NSOutlineView with 2 columns
Did you read this tutorial to see what is possible ?h ttps://www.raywenderlich.com/1201-nsoutlineview-on-macos-tutorialWhen you speak of columns, do you speak of the OutlineView predefined columns ?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’20
Reply to This class is not key value coding-compliant error
I added a 8th column with new identifiers, change the viewController code to match this new column and it also crashes. Did you add the new column as a last one, and it crashes at the 7th or this new 8th ? You could also try to add a column before the 7th. I don't think there is any issue here, but could you print the numberOfColumns of the tableView ? PS: if you can post the full project somewhere or post for a few minutes your mail here, we could exchange files so that I I can test more extensively. Maybe there is an issue in storyboard or a xib file, but hard to say without out inspecting.
Replies
Boosts
Views
Activity
Nov ’20
Reply to macOS Monterey Xcode Update Questions (New Warnings)
I am getting the same new warning (Column selection is not supported ...) when I build on Monterey (2019 iMac). I have a custom NSTableView which contains 3 columns (all are text, two are hidden) that gets the warning. Nowhere in the code do I do anything to select a column. It does select rows, and it does do drag & drop. I have no clue why that warning is being given.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Sections in SwiftUI Tables?
AFAIK, not directly in Table. When there are multiple columns, would you have section for a specific column or for all ? It is possible in List. Cen you adapt your code to use List instead ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to [bug report] Unicode characters with "variation selectors" are not rendered in the iPhone Safari browser (webkit) with iOS 17.3
This isn't working for the Variation Selector-15 (U+FE0E) for all the characters. Can you please apply that variation selector to all your Unicode characters? I) Steps to reproduce the issue: navigate in safari to the page https://eurovot.com/vs.htm II) Expected result: as the 1st column of characters have the Variation Selector-15 (U+FE0E) applied, and the 2nd column have the Variation Selector-16 (U+FE0F) applied, the first column should always display orange characters and the second column emoji characters. III) Error result: some characters are working fine in the 1st column and displayed as text in orange colour, but some other aren't displayed as text, but displayed as emojis instead.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to NSTableView Selected Columns Not Highlighted
I have meet the same issue. allows column selection and click to select a column and never highlighted. Do you still have this issue? Will appreciate it for tell me some helpful information. @gatera
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Refreshable lists with 2 columns
this is my implementation so far :) ScrollView { LazyVGrid(columns: columns) { ForEach(self.model.data) { feature in FeatureRow(feature: feature, cover: feature.firstPicture) } } }.refreshable { self.load() } .onAppear { self.load() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to What is the appropriate Create ML data shape for my use case?
As far as I understand your post, I'd approach and try it in the CreateML in the following way: CGPoint is a struct and can be initialized with doubles or ints or cgfloats. Assuming double, I would suggest that you create a column for touch locations as X1 ,Y1, X2, Y2, Y3, Y4 in series, and last column as your target (ellipse, triangle, rectangle). Each row will be your series of touches and the number of columns will be equal to the longest of your series. The shorter series can have 0 in unused columns.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Replies
Boosts
Views
Activity
Jan ’21
Reply to Unable to install app on 9.2.1
If you plug the device in to your Mac and view the console output in Xcode while installing, what errors do you see? (In Xcode, Window > Devices, choose device on left column, look at the bottom part of the right column. You may need to click the upward pointing triangle in the bottom left corner of the right hand column to show the console output.)
Replies
Boosts
Views
Activity
Feb ’16
Reply to vLookup In App?
Additionally, how does the array formatting go?Why would row 1, column 2 be 6? Are columns horizontal, and rows vertical here? Also, is there a 3-number limit per row of code? If I add a 4th number to each row, it still returns 6.SO confused regarding the order. It makes zero sense why the rows/columns aren't logically ordered.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’16